diff options
author | Shay <hillerys@element.io> | 2022-09-28 03:11:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 10:11:48 +0000 |
commit | 8ab16a92edd675453c78cfd9974081e374b0f998 (patch) | |
tree | 57cb2dae52dbb6e3e09a18e1fb7e6038afcc4d20 /synapse/replication/http/send_event.py | |
parent | Prepatory work for batching events to send (#13487) (diff) | |
download | synapse-8ab16a92edd675453c78cfd9974081e374b0f998.tar.xz |
Persist CreateRoom events to DB in a batch (#13800)
Diffstat (limited to 'synapse/replication/http/send_event.py')
-rw-r--r-- | synapse/replication/http/send_event.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/replication/http/send_event.py b/synapse/replication/http/send_event.py index 486f04723c..4215a1c1bc 100644 --- a/synapse/replication/http/send_event.py +++ b/synapse/replication/http/send_event.py @@ -141,8 +141,8 @@ class ReplicationSendEventRestServlet(ReplicationEndpoint): "Got event to send with ID: %s into room: %s", event.event_id, event.room_id ) - event = await self.event_creation_handler.persist_and_notify_client_event( - requester, event, context, ratelimit=ratelimit, extra_users=extra_users + event = await self.event_creation_handler.persist_and_notify_client_events( + requester, [(event, context)], ratelimit=ratelimit, extra_users=extra_users ) return ( |