Restructure notification code for batching
1 open thread
1 open thread
Compare changes
+ 90
− 89
@@ -33,17 +33,12 @@ import (
@@ -55,6 +50,8 @@ type Params struct {
@@ -63,12 +60,11 @@ type APNSParams struct {
@@ -114,7 +110,6 @@ func StartNotifications(params Params, noTLS, noFirebase bool) (*Impl, error) {
@@ -186,93 +181,92 @@ func NewImplementation(instance *Impl) *notificationBot.Implementation {
@@ -425,20 +419,27 @@ func (nb *Impl) Sender(sendFreq int) {