mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-27 23:10:52 -04:00
Add type hints for state. (#8140)
This commit is contained in:
parent
cbd8d83da7
commit
5758dcf30c
10 changed files with 420 additions and 203 deletions
|
@ -329,10 +329,10 @@ class FederationSender(object):
|
|||
room_id = receipt.room_id
|
||||
|
||||
# Work out which remote servers should be poked and poke them.
|
||||
domains = await self.state.get_current_hosts_in_room(room_id)
|
||||
domains_set = await self.state.get_current_hosts_in_room(room_id)
|
||||
domains = [
|
||||
d
|
||||
for d in domains
|
||||
for d in domains_set
|
||||
if d != self.server_name
|
||||
and self._federation_shard_config.should_handle(self._instance_name, d)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue