diff options
author | Shay <hillerys@element.io> | 2022-10-05 10:12:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 10:12:48 -0700 |
commit | 7b7478e8b65cceb9e7362c6c1cb932b569a6f383 (patch) | |
tree | 46298955947645bfbc9a07ae47c1738037d903ef /synapse/handlers/federation_event.py | |
parent | Complement test image: capture logs from nginx (#14063) (diff) | |
download | synapse-7b7478e8b65cceb9e7362c6c1cb932b569a6f383.tar.xz |
Batch up notifications after event persistence (#14033)
Diffstat (limited to 'synapse/handlers/federation_event.py')
-rw-r--r-- | synapse/handlers/federation_event.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index 778d8869b3..da319943cc 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -2240,8 +2240,8 @@ class FederationEventHandler: event_pos = PersistedEventPosition( self._instance_name, event.internal_metadata.stream_ordering ) - await self._notifier.on_new_room_event( - event, event_pos, max_stream_token, extra_users=extra_users + await self._notifier.on_new_room_events( + [(event, event_pos)], max_stream_token, extra_users=extra_users ) if event.type == EventTypes.Member and event.membership == Membership.JOIN: |