diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/utils/config.go b/utils/config.go index 94737adc8..a4b475449 100644 --- a/utils/config.go +++ b/utils/config.go @@ -689,11 +689,3 @@ func Desanitize(cfg *model.Config) { cfg.SqlSettings.DataSourceSearchReplicas[i] = Cfg.SqlSettings.DataSourceSearchReplicas[i] } } - -func IsLeader() bool { - if IsLicensed() && *Cfg.ClusterSettings.Enable && einterfaces.GetClusterInterface() != nil { - return einterfaces.GetClusterInterface().IsLeader() - } else { - return true - } -} |