mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:56:02 -04:00
Pass Database into the data store
This commit is contained in:
parent
d64bb32a73
commit
d537be1ebd
5 changed files with 24 additions and 28 deletions
|
@ -41,7 +41,7 @@ class SQLBaseStore(object):
|
|||
self.hs = hs
|
||||
self._clock = hs.get_clock()
|
||||
self.database_engine = hs.database_engine
|
||||
self.db = Database(hs) # In future this will be passed in
|
||||
self.db = database
|
||||
self.rand = random.SystemRandom()
|
||||
|
||||
def _invalidate_state_caches(self, room_id, members_changed):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue