Skip to content

Commit

Permalink
Merge pull request #641 from coffeehc/develop
Browse files Browse the repository at this point in the history
Add: namespaceId config for nacos
  • Loading branch information
AlexStocks authored Jul 3, 2020
2 parents 72901ee + 3784669 commit 9697b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/constant/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ const (
NACOS_CATEGORY_KEY = "category"
NACOS_PROTOCOL_KEY = "protocol"
NACOS_PATH_KEY = "path"
NACOS_NAMESPACE_ID = "namespaceId"
)

const (
Expand Down
1 change: 1 addition & 0 deletions registry/nacos/base_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9697b2b

Please sign in to comment.