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

Commit

Permalink
Fixed undefined variable error in catchup (#9664)
Browse files Browse the repository at this point in the history
Broke in #9640

Co-authored-by: Patrick Cloke <[email protected]>
  • Loading branch information
erikjohnston and clokep authored Mar 24, 2021
1 parent c2d4bd6 commit c602ba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/9664.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve performance of federation catch up by sending events the latest events in the room to the remote, rather than just the last event sent by the local server.
2 changes: 2 additions & 0 deletions synapse/federation/sender/per_destination_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,8 @@ async def _catch_up_transmission_loop(self) -> None:
# the other sending servers are up).
if new_pdus:
room_catchup_pdus = new_pdus
else:
room_catchup_pdus = [pdu]

logger.info(
"Catching up rooms to %s: %r", self._destination, pdu.room_id
Expand Down

0 comments on commit c602ba8

Please sign in to comment.