diff options
author | Erik Johnston <erikj@jki.re> | 2018-03-05 11:33:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-05 11:33:07 +0000 |
commit | f394f5574d1ea1674ba698287a08a13c57431dec (patch) | |
tree | a4157b633383f969a7c9e85fe41fab9ff54f9dce /synapse/replication/slave/storage | |
parent | Merge pull request #2933 from matrix-org/erikj/3pid_yield (diff) | |
parent | Split registration store (diff) | |
download | synapse-f394f5574d1ea1674ba698287a08a13c57431dec.tar.xz |
Merge pull request #2929 from matrix-org/erikj/split_regististration_store
Split registration store
Diffstat (limited to 'synapse/replication/slave/storage')
-rw-r--r-- | synapse/replication/slave/storage/registration.py | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/synapse/replication/slave/storage/registration.py b/synapse/replication/slave/storage/registration.py index e27c7332d2..7323bf0f1e 100644 --- a/synapse/replication/slave/storage/registration.py +++ b/synapse/replication/slave/storage/registration.py @@ -14,20 +14,8 @@ # limitations under the License. from ._base import BaseSlavedStore -from synapse.storage import DataStore -from synapse.storage.registration import RegistrationStore +from synapse.storage.registration import RegistrationWorkerStore -class SlavedRegistrationStore(BaseSlavedStore): - def __init__(self, db_conn, hs): - super(SlavedRegistrationStore, self).__init__(db_conn, hs) - - # TODO: use the cached version and invalidate deleted tokens - get_user_by_access_token = RegistrationStore.__dict__[ - "get_user_by_access_token" - ] - - _query_for_auth = DataStore._query_for_auth.__func__ - get_user_by_id = RegistrationStore.__dict__[ - "get_user_by_id" - ] +class SlavedRegistrationStore(RegistrationWorkerStore, BaseSlavedStore): + pass |