From d416fd9ff548ba6503dcc51ea215bc94b925a691 Mon Sep 17 00:00:00 2001 From: Dhia Ayachi Date: Mon, 13 Jun 2022 10:52:14 -0400 Subject: [PATCH] cancel if error --- agent/proxycfg/connect_proxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/proxycfg/connect_proxy.go b/agent/proxycfg/connect_proxy.go index 7ddfdbbfd3..0c22cd37c0 100644 --- a/agent/proxycfg/connect_proxy.go +++ b/agent/proxycfg/connect_proxy.go @@ -460,6 +460,7 @@ func (s *handlerConnectProxy) handleUpdate(ctx context.Context, u UpdateEvent, s EnterpriseMeta: *structs.DefaultEnterpriseMetaInPartition(s.proxyID.PartitionOrDefault()), }, DestinationConfigEntryID+":"+NewUpstreamIDFromServiceName(svc).String(), s.ch) if err != nil { + cancel() return err }