Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fixup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jul 26, 2022
1 parent 801a11b commit 4fe0b2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions synapse/handlers/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,9 @@ async def get_new_events_as(

events = []

# Work on a copy of things here as these may change when this coroutine awaits the
# is_interested_in_room call. Shallow copy is safe as no nested data is present.
# Work on a copy of things here as these may change in the handler while
# waiting for the AS `is_interested_in_room` call to complete.
# Shallow copy is safe as no nested data is present.
latest_room_serial = handler._latest_room_serial
room_serials = handler._room_serials.copy()

Expand Down

0 comments on commit 4fe0b2e

Please sign in to comment.