This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/3.0 by this push:
new f76b01c 优化Nacos下的ServiceName的命名风格 (#1352)
f76b01c is described below
commit f76b01c6f439be07441cb55fafed78c94217902b
Author: ChangedenChan <[email protected]>
AuthorDate: Sat Jul 31 00:30:10 2021 +0800
优化Nacos下的ServiceName的命名风格 (#1352)
Co-authored-by: Changeden <[email protected]>
---
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 3600a8e..670a2c5 100644
--- a/registry/nacos/registry.go
+++ b/registry/nacos/registry.go
@@ -75,8 +75,8 @@ func getServiceName(url *common.URL) string {
func appendParam(target *bytes.Buffer, url *common.URL, key string) {
value := url.GetParam(key, "")
+ target.Write([]byte(constant.NACOS_SERVICE_NAME_SEPARATOR))
if strings.TrimSpace(value) != "" {
- target.Write([]byte(constant.NACOS_SERVICE_NAME_SEPARATOR))
target.Write([]byte(value))
}
}