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

Commit

Permalink
Comment about a better future where we can get the state diff between…
Browse files Browse the repository at this point in the history
… two events

Split off from #13561
  • Loading branch information
MadLittleMods committed Aug 22, 2022
1 parent 2c42673 commit 0e4e10a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions synapse/handlers/federation_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,12 @@ async def _get_state_ids_after_missing_prev_event(
InvalidResponseError: if the remote homeserver's response contains fields
of the wrong type.
"""

# It would be better if we could query the difference from our known
# state to the given `event_id` so the sending server doesn't have to
# send as much and we don't have to process as many events. For example
# in a room like #matrixhq, we get 200k events (77k state_events, 122k
# auth_events) from this call.
(
state_event_ids,
auth_event_ids,
Expand Down

0 comments on commit 0e4e10a

Please sign in to comment.