mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-07 10:02:15 -04:00
Batch up notifications after event persistence (#14033)
This commit is contained in:
parent
51436c8dd5
commit
7b7478e8b6
5 changed files with 66 additions and 58 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue