diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-30 13:33:38 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-30 13:36:12 +0000 |
commit | a8d16f6c00d5adb204af5fa73ffaea40eea4b632 (patch) | |
tree | 0a4d7f5c507fe7968bc067548687bd7917967df8 /synapse/server.py | |
parent | Newsfile (diff) | |
download | synapse-a8d16f6c00d5adb204af5fa73ffaea40eea4b632.tar.xz |
Review comments
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/server.py b/synapse/server.py index 54a7f4aa5f..0b81af646c 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -226,7 +226,6 @@ class HomeServer(object): self.admin_redaction_ratelimiter = Ratelimiter() self.registration_ratelimiter = Ratelimiter() - self.datastore = None self.datastores = None # Other kwargs are explicit dependencies @@ -236,8 +235,8 @@ class HomeServer(object): def setup(self): logger.info("Setting up.") with self.get_db_conn() as conn: - self.datastore = self.DATASTORE_CLASS(conn, self) - self.datastores = DataStores(self.datastore, conn, self) + datastore = self.DATASTORE_CLASS(conn, self) + self.datastores = DataStores(datastore, conn, self) conn.commit() logger.info("Finished setting up.") |