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/federation.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/federation.py')
-rw-r--r-- | synapse/replication/http/federation.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/replication/http/federation.py b/synapse/replication/http/federation.py index c287c4e269..ca065e819e 100644 --- a/synapse/replication/http/federation.py +++ b/synapse/replication/http/federation.py @@ -78,7 +78,9 @@ class ReplicationFederationSendEventsRestServlet(ReplicationEndpoint): """ event_payloads = [] for event, context in event_and_contexts: - serialized_context = yield context.serialize(event, store) + serialized_context = yield defer.ensureDeferred( + context.serialize(event, store) + ) event_payloads.append( { |