fix reload config of nodes with ids - we should clear known ids set before each reload. (#321)

This commit is contained in:
a10zn8
2023-10-12 23:51:58 +04:00
committed by GitHub
parent a9f6378d90
commit 53651bc104

View File

@@ -48,6 +48,7 @@ class UpstreamsConfigReader(
}
private fun readInternal(input: MappingNode?): UpstreamsConfig {
val config = UpstreamsConfig()
knownNodeIds.clear()
getList<MappingNode>(input, "defaults")?.value?.forEach { opts ->
val defaultOptions = ChainOptions.DefaultOptions()