diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2022-05-31 15:50:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 15:50:29 +0100 |
commit | 2fba1076c56e76410fd901120f0e8df2ef33d1c4 (patch) | |
tree | e4212594882123e4396753296126693cdedfd7b9 /synapse/handlers/federation_event.py | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-2fba1076c56e76410fd901120f0e8df2ef33d1c4.tar.xz |
Faster room joins: Try other destinations when resyncing the state of a partial-state room (#12812)
Signed-off-by: Sean Quah <seanq@matrix.org>
Diffstat (limited to 'synapse/handlers/federation_event.py')
-rw-r--r-- | synapse/handlers/federation_event.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index b908674529..549b066dd9 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -505,6 +505,9 @@ class FederationEventHandler: Args: destination: server to request full state from event: partial-state event to be de-partial-stated + + Raises: + FederationError if we fail to request state from the remote server. """ logger.info("Updating state for %s", event.event_id) with nested_logging_context(suffix=event.event_id): @@ -815,6 +818,10 @@ class FederationEventHandler: Returns: if we already had all the prev events, `None`. Otherwise, returns the event ids of the state at `event`. + + Raises: + FederationError if we fail to get the state from the remote server after any + missing `prev_event`s. """ room_id = event.room_id event_id = event.event_id @@ -901,6 +908,10 @@ class FederationEventHandler: Returns: The event ids of the state *after* the given event. + + Raises: + InvalidResponseError: if the remote homeserver's response contains fields + of the wrong type. """ ( state_event_ids, |