summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-05-30 11:24:42 +0100
committerErik Johnston <erik@matrix.org>2019-05-30 16:15:37 +0100
commit7386c35f58f360269df1410b2d1ec6d179081b32 (patch)
treef7b453c615e3521e90d50564e9237ef132105edb /synapse
parentMove event background updates to a separate file (diff)
downloadsynapse-7386c35f58f360269df1410b2d1ec6d179081b32.tar.xz
Rename constant
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/events_bg_updates.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/events_bg_updates.py b/synapse/storage/events_bg_updates.py
index 2eba106abf..22aac1393d 100644
--- a/synapse/storage/events_bg_updates.py
+++ b/synapse/storage/events_bg_updates.py
@@ -30,7 +30,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
 
     EVENT_ORIGIN_SERVER_TS_NAME = "event_origin_server_ts"
     EVENT_FIELDS_SENDER_URL_UPDATE_NAME = "event_fields_sender_url"
-    EVENT_DELETE_SOFT_FAILED_EXTREMITIES = "delete_soft_failed_extremities"
+    DELETE_SOFT_FAILED_EXTREMITIES = "delete_soft_failed_extremities"
 
     def __init__(self, db_conn, hs):
         super(EventsBackgroundUpdatesStore, self).__init__(db_conn, hs)
@@ -64,7 +64,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
         )
 
         self.register_background_update_handler(
-            self.EVENT_DELETE_SOFT_FAILED_EXTREMITIES,
+            self.DELETE_SOFT_FAILED_EXTREMITIES,
             self._cleanup_extremities_bg_update,
         )
 
@@ -388,7 +388,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
         )
 
         if not num_handled:
-            yield self._end_background_update(self.EVENT_DELETE_SOFT_FAILED_EXTREMITIES)
+            yield self._end_background_update(self.DELETE_SOFT_FAILED_EXTREMITIES)
 
             def _drop_table_txn(txn):
                 txn.execute("DROP TABLE _extremities_to_check")