diff options
author | Richard van der Hoff <github@rvanderhoff.org.uk> | 2018-02-14 16:59:03 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 16:59:03 +0000 |
commit | d28ec43e15ac226013fb728eb93cc5ec86a24006 (patch) | |
tree | 0853d13bd06f83d35b55e57836668113e48c89e7 /synapse/storage/registration.py | |
parent | Merge pull request #2854 from matrix-org/erikj/event_create_worker (diff) | |
parent | remove overzealous exception handling (diff) | |
download | synapse-d28ec43e15ac226013fb728eb93cc5ec86a24006.tar.xz |
Merge pull request #2769 from matrix-org/matthew/hit_the_gin
switch back from GIST to GIN indexes
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r-- | synapse/storage/registration.py | 7 |
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): |