Idiomatic error handling for app/c*.go (#9423)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8898d7aab9
Коммит
9d73c79def
@@ -81,9 +81,8 @@ func (me *ClusterDiscoveryService) Stop() {
|
||||
func (a *App) IsLeader() bool {
|
||||
if a.License() != nil && *a.Config().ClusterSettings.Enable && a.Cluster != nil {
|
||||
return a.Cluster.IsLeader()
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (a *App) GetClusterId() string {
|
||||
|
||||
Ссылка в новой задаче
Block a user