remove einterface gets (#7455)

This commit is contained in:
Chris
2017-09-19 18:31:35 -05:00
committed by GitHub
parent 7e4ff6adcc
commit ac74066f0e
43 changed files with 259 additions and 262 deletions

View File

@@ -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
}
}