mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-20 22:18:07 -04:00
Convert state resolution to async/await (#7942)
This commit is contained in:
parent
e739b20588
commit
b975fa2e99
18 changed files with 198 additions and 184 deletions
|
@ -330,7 +330,9 @@ class FederationSender(object):
|
|||
room_id = receipt.room_id
|
||||
|
||||
# Work out which remote servers should be poked and poke them.
|
||||
domains = yield self.state.get_current_hosts_in_room(room_id)
|
||||
domains = yield defer.ensureDeferred(
|
||||
self.state.get_current_hosts_in_room(room_id)
|
||||
)
|
||||
domains = [
|
||||
d
|
||||
for d in domains
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue