Cancel watch on all errors

This commit is contained in:
freddygv 2021-03-17 21:44:14 -06:00
parent de7f2a1a74
commit 291d7562d1
1 changed files with 1 additions and 0 deletions

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