little-cui commented on a change in pull request #732:
URL: 
https://github.com/apache/servicecomb-service-center/pull/732#discussion_r514801460



##########
File path: server/config/config.go
##########
@@ -57,9 +56,32 @@ var ServerInfo = NewServerInformation()
 func GetGov() Gov {
        return Configurations.Gov
 }
+
+//GetServer return the http server configs
+func GetServer() ServerConfig {
+       return Configurations.Server.Config
+}
+
+//GetSsl return the ssl configs
+func GetSsl() ServerConfig {

Review comment:
       DONE

##########
File path: server/config/config.go
##########
@@ -57,9 +56,32 @@ var ServerInfo = NewServerInformation()
 func GetGov() Gov {
        return Configurations.Gov
 }
+
+//GetServer return the http server configs
+func GetServer() ServerConfig {
+       return Configurations.Server.Config
+}
+
+//GetSsl return the ssl configs
+func GetSsl() ServerConfig {
+       return Configurations.Server.Config
+}
+
+//GetLog return the log configs
+func GetLog() ServerConfig {
+       return Configurations.Server.Config
+}
+
+//GetRegistry return the registry configs
+func GetRegistry() ServerConfig {
+       return Configurations.Server.Config
+}
+
 func Init() {
+       setCPUs()
+
        err := archaius.Init(archaius.WithMemorySource(), 
archaius.WithENVSource(),
-               archaius.WithOptionalFiles([]string{""}))
+               
archaius.WithOptionalFiles([]string{filepath.Join(util.GetAppRoot(), "conf", 
"app.yaml")}))

Review comment:
       DONE




----------------------------------------------------------------
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.

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


Reply via email to