MM-25700 : Use a counting semaphore for push notifications hub (#14758)

Automatic Merge
Этот коммит содержится в:
Agniva De Sarker
2020-06-18 09:26:35 +05:30
коммит произвёл GitHub
родитель b317ee5cf2
Коммит 1d9c8a490d
6 изменённых файлов: 70 добавлений и 75 удалений

Просмотреть файл

@@ -70,7 +70,6 @@ func (a *App) InitServer() {
a.notification = a.srv.Notification
a.saml = a.srv.Saml
a.StartPushNotificationsHubWorkers()
a.AddConfigListener(func(oldConfig *model.Config, newConfig *model.Config) {
if *oldConfig.GuestAccountsSettings.Enable && !*newConfig.GuestAccountsSettings.Enable {
if appErr := a.DeactivateGuests(); appErr != nil {