mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-31 13:44:16 -04:00
Faster room joins: Try other destinations when resyncing the state of a partial-state room (#12812)
Signed-off-by: Sean Quah <seanq@matrix.org>
This commit is contained in:
parent
3594f6c1f3
commit
2fba1076c5
4 changed files with 94 additions and 9 deletions
|
@ -405,6 +405,9 @@ class FederationClient(FederationBase):
|
|||
|
||||
Returns:
|
||||
a tuple of (state event_ids, auth event_ids)
|
||||
|
||||
Raises:
|
||||
InvalidResponseError: if fields in the response have the wrong type.
|
||||
"""
|
||||
result = await self.transport_layer.get_room_state_ids(
|
||||
destination, room_id, event_id=event_id
|
||||
|
@ -416,7 +419,7 @@ class FederationClient(FederationBase):
|
|||
if not isinstance(state_event_ids, list) or not isinstance(
|
||||
auth_event_ids, list
|
||||
):
|
||||
raise Exception("invalid response from /state_ids")
|
||||
raise InvalidResponseError("invalid response from /state_ids")
|
||||
|
||||
return state_event_ids, auth_event_ids
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue