summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-09-09 16:17:50 +0100
committerErik Johnston <erik@matrix.org>2020-09-09 16:17:50 +0100
commite7fd336a53a4ca489cdafc389b494d5477019dc0 (patch)
tree63ee223a5cc34448c895ea152635aba2a2296f5b /synapse/replication
parentblacklist MSC2753 sytests until it's implemented in synapse (#8285) (diff)
downloadsynapse-e7fd336a53a4ca489cdafc389b494d5477019dc0.tar.xz
Fixup pusher pool notifications
Diffstat (limited to 'synapse/replication')
-rw-r--r--synapse/replication/tcp/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py
index d6ecf5b327..ccd3147dfd 100644
--- a/synapse/replication/tcp/client.py
+++ b/synapse/replication/tcp/client.py
@@ -154,7 +154,8 @@ class ReplicationDataHandler:
                 max_token = self.store.get_room_max_stream_ordering()
                 self.notifier.on_new_room_event(event, token, max_token, extra_users)
 
-            await self.pusher_pool.on_new_notifications(token, token)
+            max_token = self.store.get_room_max_stream_ordering()
+            await self.pusher_pool.on_new_notifications(max_token)
 
         # Notify any waiting deferreds. The list is ordered by position so we
         # just iterate through the list until we reach a position that is