Cancel watch on all errors
This commit is contained in:
parent
de7f2a1a74
commit
291d7562d1
|
@ -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…
Reference in New Issue