Skip to content

Commit

Permalink
Fix lints:
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Jul 31, 2024
1 parent cba4664 commit d6dd34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ async def _load_filtered_recents(
)
# We want to return the events in ascending order (the last event is the
# most recent).
events = events.reverse()
events.reverse()
else:
# TODO: This should return events in `stream_ordering` order
events, end_key = await self.store.get_recent_events_for_room(
Expand Down Expand Up @@ -2663,7 +2663,7 @@ async def _get_room_changes_for_incremental_sync(
events, start_key = room_entry
# We want to return the events in ascending order (the last event is the
# most recent).
events = events.reverse()
events.reverse()

prev_batch_token = now_token.copy_and_replace(
StreamKeyType.ROOM, start_key
Expand Down

0 comments on commit d6dd34f

Please sign in to comment.