mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 09:35:45 +03:00
Fixed undefined variable error in catchup (#9664)
Broke in #9640 Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
This commit is contained in:
parent
c2d4bd62a2
commit
c602ba8336
2 changed files with 3 additions and 0 deletions
1
changelog.d/9664.misc
Normal file
1
changelog.d/9664.misc
Normal file
|
@ -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.
|
|
@ -480,6 +480,8 @@ class PerDestinationQueue:
|
|||
# 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
|
||||
|
|
Loading…
Reference in a new issue