mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 05:44:53 -04:00
Assume key existence. Update docstrings
This commit is contained in:
parent
c061d4f237
commit
9ccea16d45
2 changed files with 11 additions and 9 deletions
|
@ -209,9 +209,7 @@ class AdminHandler(BaseHandler):
|
|||
# Now check if this event is an unseen prev event, if so
|
||||
# then we remove this event from the appropriate dicts.
|
||||
for child_id in unseen_to_child_events.pop(event.event_id, []):
|
||||
event_to_unseen_prevs.get(child_id, set()).discard(
|
||||
event.event_id
|
||||
)
|
||||
event_to_unseen_prevs[child_id].discard(event.event_id)
|
||||
|
||||
written_events.add(event.event_id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue