MM-25700 : Use a counting semaphore for push notifications hub (#14758)
Automatic Merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b317ee5cf2
Коммит
1d9c8a490d
@@ -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)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user