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 удалений

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

@@ -95,7 +95,8 @@ type Server struct {
hubsLock sync.RWMutex
hubs []*Hub
PushNotificationsHub PushNotificationsHub
PushNotificationsHub PushNotificationsHub
pushNotificationClient *http.Client // TODO: move this to it's own package
runjobs bool
Jobs *jobs.JobServer
@@ -137,8 +138,7 @@ type Server struct {
phase2PermissionsMigrationComplete bool
HTTPService httpservice.HTTPService
pushNotificationClient *http.Client // TODO: move this to it's own package
HTTPService httpservice.HTTPService
ImageProxy *imageproxy.ImageProxy