summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-06 13:40:02 +0000
committerErik Johnston <erik@matrix.org>2019-12-06 15:49:44 +0000
commitd537be1ebd0e7ce4c84118efa400932cc6432aa9 (patch)
tree826900b4179f93fa40e4ea3b09b3adf35295e4dc /synapse/server.py
parentMove are_all_users_on_domain checks to main data store. (diff)
downloadsynapse-d537be1ebd0e7ce4c84118efa400932cc6432aa9.tar.xz
Pass Database into the data store
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/server.py b/synapse/server.py
index be9af7f986..2db3dab221 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -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.")