This is an automated email from the ASF dual-hosted git repository.
joezou pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/develop by this push:
new 79f44b6 fix: nacos registry can not get namespaceId
new d2edc54 Merge pull request #778 from peaman/bugfix
79f44b6 is described below
commit 79f44b68d71d25527887708b98d3ab6db802b9e1
Author: kun.zhao <[email protected]>
AuthorDate: Sun Sep 27 19:04:51 2020 +0800
fix: nacos registry can not get namespaceId
---
registry/nacos/registry.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/registry/nacos/registry.go b/registry/nacos/registry.go
index 4110908..7574744 100644
--- a/registry/nacos/registry.go
+++ b/registry/nacos/registry.go
@@ -288,6 +288,7 @@ func getNacosConfig(url *common.URL)
(map[string]interface{}, error) {
clientConfig.CacheDir = url.GetParam(constant.NACOS_CACHE_DIR_KEY, "")
clientConfig.LogDir = url.GetParam(constant.NACOS_LOG_DIR_KEY, "")
clientConfig.Endpoint = url.GetParam(constant.NACOS_ENDPOINT, "")
+ clientConfig.NamespaceId = url.GetParam(constant.NACOS_NAMESPACE_ID, "")
clientConfig.NotLoadCacheAtStart = true
configMap["clientConfig"] = clientConfig