From 230ae38f8936858cf70b3b24ae19e37d622d7baf Mon Sep 17 00:00:00 2001 From: baozhecheng Date: Tue, 23 Aug 2022 14:24:41 +0800 Subject: [PATCH] fix --- contrib/registry/consul/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/registry/consul/client.go b/contrib/registry/consul/client.go index a3f84eb50..a99d812b2 100644 --- a/contrib/registry/consul/client.go +++ b/contrib/registry/consul/client.go @@ -149,6 +149,7 @@ func (c *Client) Register(_ context.Context, svc *registry.ServiceInstance, enab port, _ := strconv.ParseInt(portRaw, 10, 32) asr.Address = host asr.Port = int(port) + break } }