File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ Faster room joins: Fix error when running out of servers to sync partial state with, so that Synapse raises the intended error instead.
Original file line number Diff line number Diff line change @@ -1543,15 +1543,16 @@ async def _sync_partial_state_room(
15431543
15441544 # Make an infinite iterator of destinations to try. Once we find a working
15451545 # destination, we'll stick with it until it flakes.
1546+ destinations : Collection [str ]
15461547 if initial_destination is not None :
15471548 # Move `initial_destination` to the front of the list.
15481549 destinations = list (other_destinations )
15491550 if initial_destination in destinations :
15501551 destinations .remove (initial_destination )
15511552 destinations = [initial_destination ] + destinations
1552- destination_iter = itertools .cycle (destinations )
15531553 else :
1554- destination_iter = itertools .cycle (other_destinations )
1554+ destinations = other_destinations
1555+ destination_iter = itertools .cycle (destinations )
15551556
15561557 # `destination` is the current remote homeserver we're pulling from.
15571558 destination = next (destination_iter )
You can’t perform that action at this time.
0 commit comments