diff --git a/registry/nacos/registry.go b/registry/nacos/registry.go index 411090820c7682ab9c3b5576ea8ad5207c2c899f..757474455b7e5df6e5fb454228cdcb551b6a3a0e 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