summary refs log tree commit diff
path: root/synapse/storage/registration.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-02-02 14:32:51 +0000
committerRichard van der Hoff <richard@matrix.org>2018-02-02 14:32:51 +0000
commit6b02fc80d173d3d4de81623d411a136abe1637e9 (patch)
treebe205b82531cde6154a4f20ee84923282f595e83 /synapse/storage/registration.py
parentfix GIST->GIN switch (diff)
downloadsynapse-6b02fc80d173d3d4de81623d411a136abe1637e9.tar.xz
Reinstate event_search_postgres_gist handler
People may have queued updates for this, so we can't just delete it.
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r--synapse/storage/registration.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 3aa810981f..95f75d6df1 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -39,12 +39,7 @@ class RegistrationStore(background_updates.BackgroundUpdateStore):
         # we no longer use refresh tokens, but it's possible that some people
         # might have a background update queued to build this index. Just
         # clear the background update.
-        @defer.inlineCallbacks
-        def noop_update(progress, batch_size):
-            yield self._end_background_update("refresh_tokens_device_index")
-            defer.returnValue(1)
-        self.register_background_update_handler(
-            "refresh_tokens_device_index", noop_update)
+        self.register_noop_background_update("refresh_tokens_device_index")
 
     @defer.inlineCallbacks
     def add_access_token_to_user(self, user_id, token, device_id=None):