diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-24 14:25:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 14:25:27 -0400 |
commit | 5758dcf30c245efa1032385cd1af7853d39642a9 (patch) | |
tree | c3fe5e05f8ce1c408ab9d74d2ecd16c7bb6f459e /synapse/federation/sender | |
parent | Stop shadow-banned users from sending non-member events. (#8142) (diff) | |
download | synapse-5758dcf30c245efa1032385cd1af7853d39642a9.tar.xz |
Add type hints for state. (#8140)
Diffstat (limited to 'synapse/federation/sender')
-rw-r--r-- | synapse/federation/sender/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py index e53b6ac456..4662008bfd 100644 --- a/synapse/federation/sender/__init__.py +++ b/synapse/federation/sender/__init__.py @@ -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) ] |