tianxiaoliang commented on a change in pull request #1208:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1208#discussion_r780723802



##########
File path: server/config/config.go
##########
@@ -175,6 +175,10 @@ func loadServerConfig() ServerConfig {
                        GlobalVisible: 
GetString("registry.service.globalVisible", "", WithENV("CSE_SHARED_SERVICES")),
                        InstanceTTL:   GetInt64("registry.instance.ttl", 0, 
WithENV("INSTANCE_TTL")),
 
+                       DataCenterName:          
GetString("registry.instance.datacenter.name", "", WithENV("DATACENTER_NAME")),
+                       DataCenterRegion:        
GetString("registry.instance.datacenter.region", "", 
WithENV("DATACENTER_REGION")),

Review comment:
       这样做下去的坏处是我们要维护大量的代码 ,用archaius.Unmarshal就能一把反序列化了




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to