Skip to content

Commit bc4dc5b

Browse files
committed
Merge remote-tracking branch 'RyanRory/upgrade-fcm-api' into v2
2 parents 6088ad6 + e287f02 commit bc4dc5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spns/notifiers/firebase.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import firebase_admin
99
from firebase_admin import messaging
10-
from firebase_admin.exceptions import *
1110

1211
import oxenc
1312
from oxenmq import OxenMQ, Message, Address, AuthLevel
@@ -92,7 +91,7 @@ def send_pending():
9291

9392
i = 0
9493
while i < len(queue):
95-
results = messaging.send_all(messages=queue[i : i + MAX_NOTIFIES], app=firebase_app)
94+
results = messaging.send_each(messages=queue[i : i + MAX_NOTIFIES], app=firebase_app)
9695
with stats.lock:
9796
stats.notifies += min(len(queue) - i, MAX_NOTIFIES)
9897

0 commit comments

Comments
 (0)