From 8e19ba029f889519d93cf272960dce858971106c Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 18 Oct 2017 15:36:43 -0700 Subject: 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 --- app/cluster_discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/cluster_discovery.go') diff --git a/app/cluster_discovery.go b/app/cluster_discovery.go index 5278b339d..6418ab2be 100644 --- a/app/cluster_discovery.go +++ b/app/cluster_discovery.go @@ -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 -- cgit v1.2.3-1-g7c22