summary refs log tree commit diff
path: root/synapse/storage/controllers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-07-20 13:26:14 +0100
committerErik Johnston <erik@matrix.org>2023-07-20 13:26:14 +0100
commit80db47ea4032e287a0478645a542b9750137f71f (patch)
treed7acece594dd48a4f16acace562ce242d74cbb08 /synapse/storage/controllers
parentNewsfile (diff)
downloadsynapse-github/erikj/efficient_host_query.tar.xz
Diffstat (limited to 'synapse/storage/controllers')
-rw-r--r--synapse/storage/controllers/state.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/storage/controllers/state.py b/synapse/storage/controllers/state.py

index bead56e753..191f9d0c71 100644 --- a/synapse/storage/controllers/state.py +++ b/synapse/storage/controllers/state.py
@@ -19,7 +19,6 @@ from typing import ( Callable, Collection, Dict, - FrozenSet, Iterable, List, Mapping, @@ -654,7 +653,7 @@ class StateStorageController: if not changed_users: return known_joined_hosts - potentially_changed_hosts = set(get_domain_from_id(u) for u in changed_users) + potentially_changed_hosts = {get_domain_from_id(u) for u in changed_users} if not potentially_changed_hosts - known_joined_hosts: return known_joined_hosts