mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
Cancel watch on all errors
This commit is contained in:
parent
52bf00de8b
commit
eb1e0a1751
@ -1638,6 +1638,7 @@ func (s *state) watchDiscoveryChain(snap *ConfigSnapshot, cfg reducedUpstreamCon
|
||||
case structs.ServiceKindConnectProxy:
|
||||
snap.ConnectProxy.WatchedDiscoveryChains[id] = cancel
|
||||
default:
|
||||
cancel()
|
||||
return fmt.Errorf("unsupported kind %s", s.kind)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user