You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/01/09 01:29:21 UTC
[GitHub] [servicecomb-service-center] tianxiaoliang commented on a change in pull request #1208: [feat] add datacenter info to instance from config
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: commits-unsubscribe@servicecomb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org