Skip to content
Snippets Groups Projects
Commit 3f94f66a authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #641 from coffeehc/develop

Add: namespaceId config for nacos
parents 47e6c2a9 c397d405
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,7 @@ const (
NACOS_CATEGORY_KEY = "category"
NACOS_PROTOCOL_KEY = "protocol"
NACOS_PATH_KEY = "path"
NACOS_NAMESPACE_ID = "namespaceId"
)
const (
......
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment