diff options
author | David Robertson <davidr@element.io> | 2023-01-26 11:00:07 +0000 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2023-01-26 11:00:07 +0000 |
commit | e01b43ad785127a67f7caea125491ea6dd4c29e4 (patch) | |
tree | a42193634fb649a09e3c5254cf3ccb11ef58b5f6 | |
parent | Also improve the cache size while we're at it (diff) | |
download | synapse-e01b43ad785127a67f7caea125491ea6dd4c29e4.tar.xz |
is_partial_state_rooms -> is_partial_state_room_batched
-rw-r--r-- | synapse/handlers/sync.py | 4 | ||||
-rw-r--r-- | synapse/storage/databases/main/room.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 6095513277..0d4240d014 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -1383,7 +1383,7 @@ class SyncHandler: if not sync_config.filter_collection.lazy_load_members(): # Non-lazy syncs should never include partially stated rooms. # Exclude all partially stated rooms from this sync. - results = await self.store.is_partial_state_rooms(mutable_joined_room_ids) + results = await self.store.is_partial_state_room_batched(mutable_joined_room_ids) mutable_rooms_to_exclude.update( room_id for room_id, is_partial_state in results.items() @@ -1404,7 +1404,7 @@ class SyncHandler: mutable_joined_room_ids, ) ) - results = await self.store.is_partial_state_rooms(un_partial_stated_rooms) + results = await self.store.is_partial_state_room_batched(un_partial_stated_rooms) forced_newly_joined_room_ids.update( room_id for room_id, is_partial_state in results.items() diff --git a/synapse/storage/databases/main/room.py b/synapse/storage/databases/main/room.py index 72e29bbb1b..1babf71cb0 100644 --- a/synapse/storage/databases/main/room.py +++ b/synapse/storage/databases/main/room.py @@ -1275,7 +1275,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore): return entry is not None @cachedList(cached_method_name="is_partial_state_room", list_name="room_ids") - async def is_partial_state_rooms( + async def is_partial_state_room_batched( self, room_ids: StrCollection ) -> Mapping[str, bool]: """Checks if the given rooms have partial state. |