summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-03-01 16:23:48 +0000
committerErik Johnston <erik@matrix.org>2018-03-01 16:23:48 +0000
commit884b26ae4150f19bd1e020c3eed934e978518a09 (patch)
treeb16eaa281fda1b9ddda79076228a730c30bc42c0 /synapse
parentDocument abstract class and method better (diff)
downloadsynapse-884b26ae4150f19bd1e020c3eed934e978518a09.tar.xz
Remove unused variables
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/__init__.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 0ce76d7a8c..22c156c15b 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -141,14 +141,6 @@ class DataStore(RoomMemberStore, RoomStore,
         else:
             self._cache_id_gen = None
 
-        events_max = self._stream_id_gen.get_current_token()
-        event_cache_prefill, min_event_val = self._get_cache_dict(
-            db_conn, "events",
-            entity_column="room_id",
-            stream_column="stream_ordering",
-            max_value=events_max,
-        )
-
         self._presence_on_startup = self._get_active_presence(db_conn)
 
         presence_cache_prefill, min_presence_val = self._get_cache_dict(
@@ -196,6 +188,7 @@ class DataStore(RoomMemberStore, RoomStore,
             "DeviceListFederationStreamChangeCache", device_list_max,
         )
 
+        events_max = self._stream_id_gen.get_current_token()
         curr_state_delta_prefill, min_curr_state_delta_id = self._get_cache_dict(
             db_conn, "current_state_delta_stream",
             entity_column="room_id",