mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-11 11:43:46 -05:00
Convert presence handler helpers to async/await. (#7939)
This commit is contained in:
parent
83434df381
commit
fefe9943ef
3 changed files with 24 additions and 24 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue