diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-09 18:51:27 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-13 10:46:07 +0000 |
commit | 6cfee09be9b5f58b83ef30bb35fa70453c7c2329 (patch) | |
tree | 2042b72b3fc313291caab46fc3236cb19107b05e /synapse/storage/appservice.py | |
parent | Revert "move _state_group_cache to statestore" (diff) | |
download | synapse-6cfee09be9b5f58b83ef30bb35fa70453c7c2329.tar.xz |
Make __init__ consitstent across Store heirarchy
Add db_conn parameters to the `__init__` methods of the *Store classes, so that they are all consistent, which makes the multiple inheritance work correctly (and so that we can later extract mixins which can be used in the slavedstores)
Diffstat (limited to 'synapse/storage/appservice.py')
-rw-r--r-- | synapse/storage/appservice.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/storage/appservice.py b/synapse/storage/appservice.py index c63935cb07..d8c84b7141 100644 --- a/synapse/storage/appservice.py +++ b/synapse/storage/appservice.py @@ -48,8 +48,8 @@ def _make_exclusive_regex(services_cache): class ApplicationServiceStore(SQLBaseStore): - def __init__(self, hs): - super(ApplicationServiceStore, self).__init__(hs) + def __init__(self, db_conn, hs): + super(ApplicationServiceStore, self).__init__(db_conn, hs) self.hostname = hs.hostname self.services_cache = load_appservices( hs.hostname, @@ -173,8 +173,8 @@ class ApplicationServiceStore(SQLBaseStore): class ApplicationServiceTransactionStore(SQLBaseStore): - def __init__(self, hs): - super(ApplicationServiceTransactionStore, self).__init__(hs) + def __init__(self, db_conn, hs): + super(ApplicationServiceTransactionStore, self).__init__(db_conn, hs) @defer.inlineCallbacks def get_appservices_by_state(self, state): |