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

Faster joins: use servers list approximation in assert_host_in_room #14515

Merged
merged 3 commits into from
Nov 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Missing await
  • Loading branch information
Mathieu Velten committed Nov 22, 2022
commit 00eda085d0133da56311c691e9ac29027f020402
2 changes: 1 addition & 1 deletion synapse/handlers/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def assert_host_in_room(
this function may return an incorrect result as we are not able to fully
track server membership in a room without full state.
"""
if self._store.is_partial_state_room(room_id):
if await self._store.is_partial_state_room(room_id):
if allow_partial_state_rooms:
current_hosts = await self._state_storage_controller.get_current_hosts_in_room_or_partial_state_approximation(
room_id
Expand Down