mirror of https://github.com/hashicorp/consul
agent: merge RetryInterval in config merger
parent
7c91c08457
commit
6d75fc8fb2
|
@ -700,6 +700,9 @@ func MergeConfig(a, b *Config) *Config {
|
|||
if b.RetryMaxAttempts != 0 {
|
||||
result.RetryMaxAttempts = b.RetryMaxAttempts
|
||||
}
|
||||
if b.RetryInterval != 0 {
|
||||
result.RetryInterval = b.RetryInterval
|
||||
}
|
||||
if b.DNSConfig.NodeTTL != 0 {
|
||||
result.DNSConfig.NodeTTL = b.DNSConfig.NodeTTL
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue