Remove json config overriding with env vars

in LoadJSON for restapi and cluster Config

License: MIT
Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
This commit is contained in:
Robert Ignat 2019-02-08 23:58:05 +02:00
parent 032f02802f
commit 21a539159f
2 changed files with 0 additions and 12 deletions

View File

@ -243,12 +243,6 @@ func (cfg *Config) LoadJSON(raw []byte) error {
cfg.Default()
// override json config with env var
err = envconfig.Process(envConfigKey, jcfg)
if err != nil {
return err
}
return cfg.applyJSONConfig(jcfg)
}

View File

@ -318,12 +318,6 @@ for more information.`)
return errors.New("cluster.Peers and cluster.Bootstrap keys have been deprecated")
}
// override json config with env var
err = envconfig.Process(cfg.ConfigKey(), jcfg)
if err != nil {
return err
}
return cfg.applyConfigJSON(jcfg)
}