You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/01/17 10:37:42 UTC

[dubbo-go] branch master updated: Use nacos constant instead of hardcoded string

This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/master by this push:
     new 109d1dc  Use nacos constant instead of hardcoded string
     new 9d5dc61  Merge pull request #996 from luckyxiaoqiang/feature/refactor_nacos_registry
109d1dc is described below

commit 109d1dc6d681259fe5193ed2f8046e9d6f1e3f09
Author: dingxiaoqiang <di...@youzan.com>
AuthorDate: Fri Jan 15 15:35:50 2021 +0800

    Use nacos constant instead of hardcoded string
---
 registry/nacos/registry.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/registry/nacos/registry.go b/registry/nacos/registry.go
index 0df6839..de68e74 100644
--- a/registry/nacos/registry.go
+++ b/registry/nacos/registry.go
@@ -274,7 +274,7 @@ func getNacosConfig(url *common.URL) (map[string]interface{}, error) {
 			Port:   uint64(port),
 		})
 	}
-	configMap["serverConfigs"] = serverConfigs
+	configMap[nacosConstant.KEY_SERVER_CONFIGS] = serverConfigs
 
 	var clientConfig nacosConstant.ClientConfig
 	timeout, err := time.ParseDuration(url.GetParam(constant.REGISTRY_TIMEOUT_KEY, constant.DEFAULT_REG_TIMEOUT))
@@ -296,7 +296,7 @@ func getNacosConfig(url *common.URL) (map[string]interface{}, error) {
 	}
 	clientConfig.NotLoadCacheAtStart = notLoadCache
 
-	configMap["clientConfig"] = clientConfig
+	configMap[nacosConstant.KEY_CLIENT_CONFIG] = clientConfig
 
 	return configMap, nil
 }