summary refs log tree commit diff
path: root/synapse/storage/controllers
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2022-11-14 08:13:11 -0500
committerGitHub <noreply@github.com>2022-11-14 08:13:11 -0500
commitfb66fae84b165e7bd132bc7cbc5732485ceee827 (patch)
treec28f4fd1d572dd7497e0f181eb9bc05d8053edcb /synapse/storage/controllers
parentBump gitpython from 3.1.27 to 3.1.29 (#14429) (diff)
downloadsynapse-fb66fae84b165e7bd132bc7cbc5732485ceee827.tar.xz
Clean-up events persistance code (#14411)
By removing unused variables and making some arguments
required which are always provided.
Diffstat (limited to 'synapse/storage/controllers')
-rw-r--r--synapse/storage/controllers/persist_events.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/synapse/storage/controllers/persist_events.py b/synapse/storage/controllers/persist_events.py
index 06e71a8053..48976dc570 100644
--- a/synapse/storage/controllers/persist_events.py
+++ b/synapse/storage/controllers/persist_events.py
@@ -716,8 +716,6 @@ class EventsPersistenceStorageController:
                             )
                             if not is_still_joined:
                                 logger.info("Server no longer in room %s", room_id)
-                                latest_event_ids = set()
-                                current_state = {}
                                 delta.no_longer_in_room = True
 
                             state_delta_for_room[room_id] = delta