This is an automated email from the ASF dual-hosted git repository. alexstocks 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 3784669 add namespaceId config for nacos new 9697b2b Merge pull request #641 from coffeehc/develop 3784669 is described below commit 378466946d726442c6da640936eaf2ebb3b1ba4e Author: coffee <coffe...@gmail.com> AuthorDate: Thu Jul 2 13:08:54 2020 +0800 add namespaceId config for nacos --- common/constant/key.go | 1 + registry/nacos/base_registry.go | 1 + 2 files changed, 2 insertions(+) diff --git a/common/constant/key.go b/common/constant/key.go index 5be63fe..8da0e89 100644 --- a/common/constant/key.go +++ b/common/constant/key.go @@ -150,6 +150,7 @@ const ( NACOS_CATEGORY_KEY = "category" NACOS_PROTOCOL_KEY = "protocol" NACOS_PATH_KEY = "path" + NACOS_NAMESPACE_ID = "namespaceId" ) const ( diff --git a/registry/nacos/base_registry.go b/registry/nacos/base_registry.go index 63f4999..f09754e 100644 --- a/registry/nacos/base_registry.go +++ b/registry/nacos/base_registry.go @@ -95,6 +95,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