summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-07-23 16:47:36 -0400
committerGitHub <noreply@github.com>2020-07-23 16:47:36 -0400
commitfefe9943ef008b00bc85f80a486323279e63d117 (patch)
tree20f36b6567bf8f265100053c2b8c3b37e4e07b39 /synapse/federation
parentUpdate the auth providers to be async. (#7935) (diff)
downloadsynapse-fefe9943ef008b00bc85f80a486323279e63d117.tar.xz
Convert presence handler helpers to async/await. (#7939)
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/sender/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py
index b328a4df09..99ce73e081 100644
--- a/synapse/federation/sender/__init__.py
+++ b/synapse/federation/sender/__init__.py
@@ -453,7 +453,9 @@ class FederationSender(object):
         """Given a list of states populate self.pending_presence_by_dest and
         poke to send a new transaction to each destination
         """
-        hosts_and_states = yield get_interested_remotes(self.store, states, self.state)
+        hosts_and_states = yield defer.ensureDeferred(
+            get_interested_remotes(self.store, states, self.state)
+        )
 
         for destinations, states in hosts_and_states:
             for destination in destinations: