Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Make /sync do less state res (#10102)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston authored Jun 2, 2021
1 parent 3ff6fe2 commit 4deaebf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/10102.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make `/sync` do fewer state resolutions.
4 changes: 2 additions & 2 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ async def _load_filtered_recents(
# ensure that we always include current state in the timeline
current_state_ids = frozenset() # type: FrozenSet[str]
if any(e.is_state() for e in recents):
current_state_ids_map = await self.state.get_current_state_ids(
current_state_ids_map = await self.store.get_current_state_ids(
room_id
)
current_state_ids = frozenset(current_state_ids_map.values())
Expand Down Expand Up @@ -523,7 +523,7 @@ async def _load_filtered_recents(
# ensure that we always include current state in the timeline
current_state_ids = frozenset()
if any(e.is_state() for e in loaded_recents):
current_state_ids_map = await self.state.get_current_state_ids(
current_state_ids_map = await self.store.get_current_state_ids(
room_id
)
current_state_ids = frozenset(current_state_ids_map.values())
Expand Down

0 comments on commit 4deaebf

Please sign in to comment.