mirror of
https://github.com/element-hq/synapse
synced 2024-10-02 22:02:41 +00:00
Remove extra for-loop
Co-authored-by: Erik Johnston <erikj@element.io>
This commit is contained in:
parent
2864837b65
commit
2af467d4a8
1 changed files with 1 additions and 4 deletions
|
@ -450,10 +450,7 @@ class SlidingSyncHandler:
|
|||
# Then assemble the `RoomStreamToken`
|
||||
membership_snapshot_token = RoomStreamToken(
|
||||
# Minimum position in the `instance_map`
|
||||
stream=min(
|
||||
stream_ordering
|
||||
for stream_ordering in instance_to_max_stream_ordering_map.values()
|
||||
),
|
||||
stream=min(instance_to_max_stream_ordering_map.values()),
|
||||
instance_map=immutabledict(instance_to_max_stream_ordering_map),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue