[MM-16520] Migrate "Status.ResetAll" to Sync by default (#11424)
* Updated ResetAll function to return object * Modified the defined interface * Changed the data type where ResetAll was referrenced * Refactored code Changed user's email * Fixed indentation
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
ea8d441345
Коммит
a86b204105
@@ -234,8 +234,8 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
s.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableDeveloper = true })
|
||||
}
|
||||
|
||||
if result := <-s.Store.Status().ResetAll(); result.Err != nil {
|
||||
mlog.Error(fmt.Sprint("Error to reset the server status.", result.Err.Error()))
|
||||
if err := s.Store.Status().ResetAll(); err != nil {
|
||||
mlog.Error(fmt.Sprint("Error to reset the server status.", err.Error()))
|
||||
}
|
||||
|
||||
if s.joinCluster && s.Cluster != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user