Cancel watch on all errors

This commit is contained in:
freddygv 2021-03-17 21:44:14 -06:00
parent 52bf00de8b
commit eb1e0a1751

View File

@ -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)
}