diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-06-13 17:40:14 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-06-13 17:40:14 +0100 |
commit | 27cd0b3037b439337a54de370a52be671ff4198d (patch) | |
tree | 246db47d18a8ee955ae171b85467c2adf8007f56 | |
parent | Create the index in a background update (diff) | |
download | synapse-27cd0b3037b439337a54de370a52be671ff4198d.tar.xz |
Fix snafu
-rw-r--r-- | synapse/storage/profile.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py index 919b1f1641..23c4c31669 100644 --- a/synapse/storage/profile.py +++ b/synapse/storage/profile.py @@ -19,12 +19,13 @@ from twisted.internet import defer from synapse.api.errors import StoreError from synapse.storage.roommember import ProfileInfo +from ._base import SQLBaseStore from . import background_updates BATCH_SIZE = 100 -class ProfileWorkerStore(background_updates.BackgroundUpdateStore): +class ProfileWorkerStore(SQLBaseStore): @defer.inlineCallbacks def get_profileinfo(self, user_localpart): try: @@ -165,7 +166,7 @@ class ProfileWorkerStore(background_updates.BackgroundUpdateStore): ) -class ProfileStore(ProfileWorkerStore): +class ProfileStore(ProfileWorkerStore, background_updates.BackgroundUpdateStore): def __init__(self, db_conn, hs): super(ProfileStore, self).__init__(db_conn, hs) |