allow loading some from config and some values from ENVs (#9872)

A regression perhaps introduced in #9851
This commit is contained in:
Harshavardhana
2020-06-18 17:31:56 -07:00
committed by GitHub
parent 85a1956e5c
commit fa13fe2184
3 changed files with 18 additions and 18 deletions

View File

@@ -162,9 +162,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
srvCfg := newServerConfig()
// Override any values from ENVs.
lookupConfigOnce.Do(func() {
lookupConfigs(srvCfg)
})
lookupConfigs(srvCfg)
// hold the mutex lock before a new config is assigned.
globalServerConfigMu.Lock()