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

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

@@ -1377,6 +1377,7 @@ type EmailSettings struct {
SendPushNotifications *bool
PushNotificationServer *string
PushNotificationContents *string
PushNotificationBuffer *int
EnableEmailBatching *bool
EmailBatchingBufferSize *int
EmailBatchingInterval *int
@@ -1477,6 +1478,10 @@ func (s *EmailSettings) SetDefaults(isUpdate bool) {
s.PushNotificationContents = NewString(FULL_NOTIFICATION)
}
if s.PushNotificationBuffer == nil {
s.PushNotificationBuffer = NewInt(1000)
}
if s.EnableEmailBatching == nil {
s.EnableEmailBatching = NewBool(false)
}