From 603d829332929ff337691848a6191b01bdb90491 Mon Sep 17 00:00:00 2001 From: haohongfan <haohongfan@ling.ai> Date: Sun, 15 Nov 2020 19:44:43 +0800 Subject: [PATCH] feat: fix protocol need a new url --- registry/protocol/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/protocol/protocol.go b/registry/protocol/protocol.go index 4e66e8129..e3af9ba97 100644 --- a/registry/protocol/protocol.go +++ b/registry/protocol/protocol.go @@ -274,7 +274,7 @@ func (nl *overrideSubscribeListener) doOverrideIfNecessary() { } if currentUrl.String() != providerUrl.String() { - newRegUrl := nl.originInvoker.GetUrl() + newRegUrl := nl.originInvoker.GetUrl().Clone() setProviderUrl(newRegUrl, providerUrl) nl.protocol.reExport(nl.originInvoker, newRegUrl) } -- GitLab