Skip to content

Commit

Permalink
Update synapse/handlers/sliding_sync/room_lists.py
Browse files Browse the repository at this point in the history
Co-authored-by: Devon Hudson <devon.dmytro@gmail.com>
  • Loading branch information
erikjohnston and devonh committed Sep 20, 2024
1 parent 421f71c commit c750b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/handlers/sliding_sync/room_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -2044,7 +2044,7 @@ async def sort_rooms(
# is because the cache must include all entries above
# `.get_earliest_known_position()`.
if limit is not None and len(cached_positions) >= limit:
# ... but first we need to make handle the case where the cached max
# ... but first we need to handle the case where the cached max
# position is greater than the to_token, in which case we do
# actually query the DB. This should happen rarely, so can do it in
# a loop.
Expand Down

0 comments on commit c750b38

Please sign in to comment.