Reduce utils.Cfg references (#7650)

* app.UpdateConfig method

* test fix

* another test fix

* the config override option as-was is just error prone, remove it for now

* derp
This commit is contained in:
Chris
2017-10-18 15:36:43 -07:00
committed by GitHub
parent 34a87fa8f4
commit 8e19ba029f
91 changed files with 1390 additions and 1276 deletions

View File

@@ -80,7 +80,7 @@ func (me *ClusterDiscoveryService) Stop() {
}
func (a *App) IsLeader() bool {
if utils.IsLicensed() && *utils.Cfg.ClusterSettings.Enable && a.Cluster != nil {
if utils.IsLicensed() && *a.Config().ClusterSettings.Enable && a.Cluster != nil {
return a.Cluster.IsLeader()
} else {
return true