mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 07:24:49 -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
|
@ -238,8 +238,7 @@ class HomeServer(object):
|
|||
def setup(self):
|
||||
logger.info("Setting up.")
|
||||
with self.get_db_conn() as conn:
|
||||
datastore = self.DATASTORE_CLASS(conn, self)
|
||||
self.datastores = DataStores(datastore, conn, self)
|
||||
self.datastores = DataStores(self.DATASTORE_CLASS, conn, self)
|
||||
conn.commit()
|
||||
self.start_time = int(self.get_clock().time())
|
||||
logger.info("Finished setting up.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue