This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/main by this push:
new 6c5fd6d4c Fix nacos registry "*" subscription. (#2713)
6c5fd6d4c is described below
commit 6c5fd6d4c35d279674a12123be987a215e322f9d
Author: Ken Liu <[email protected]>
AuthorDate: Mon Jul 22 19:19:25 2024 +0800
Fix nacos registry "*" subscription. (#2713)
---
registry/nacos/registry.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/registry/nacos/registry.go b/registry/nacos/registry.go
index 42f173094..954e26a18 100644
--- a/registry/nacos/registry.go
+++ b/registry/nacos/registry.go
@@ -169,7 +169,7 @@ func (nr *nacosRegistry) Subscribe(url *common.URL,
notifyListener registry.Noti
if role != common.CONSUMER {
return nil
}
- serviceName := getServiceName(url)
+ serviceName := url.GetParam(constant.InterfaceKey, "")
if serviceName == "*" {
// Subscribe to all services
for {