cancel if error

pull/13596/head
Dhia Ayachi 2 years ago
parent 66f3c58c39
commit d416fd9ff5

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

Loading…
Cancel
Save