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

Commit c602ba8

Browse files
erikjohnstonclokep
andauthored
Fixed undefined variable error in catchup (#9664)
Broke in #9640 Co-authored-by: Patrick Cloke <[email protected]>
1 parent c2d4bd6 commit c602ba8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changelog.d/9664.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

synapse/federation/sender/per_destination_queue.py

+2
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ async def _catch_up_transmission_loop(self) -> None:
480480
# the other sending servers are up).
481481
if new_pdus:
482482
room_catchup_pdus = new_pdus
483+
else:
484+
room_catchup_pdus = [pdu]
483485

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

0 commit comments

Comments
 (0)