diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-07-27 13:40:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 13:40:22 -0400 |
commit | 8553f4649857c7862e30917adc925642ad684a10 (patch) | |
tree | b27f5be2f4a4156ba4f058c09516f104636b4e9e /synapse/replication/http/send_event.py | |
parent | Convert groups and visibility code to async / await. (#7951) (diff) | |
download | synapse-8553f4649857c7862e30917adc925642ad684a10.tar.xz |
Convert a synapse.events to async/await. (#7949)
Diffstat (limited to 'synapse/replication/http/send_event.py')
-rw-r--r-- | synapse/replication/http/send_event.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/http/send_event.py b/synapse/replication/http/send_event.py index c981723c1a..b30e4d5039 100644 --- a/synapse/replication/http/send_event.py +++ b/synapse/replication/http/send_event.py @@ -77,7 +77,7 @@ class ReplicationSendEventRestServlet(ReplicationEndpoint): extra_users (list(UserID)): Any extra users to notify about event """ - serialized_context = yield context.serialize(event, store) + serialized_context = yield defer.ensureDeferred(context.serialize(event, store)) payload = { "event": event.get_pdu_json(), |