summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-06 11:15:25 +0000
committerErik Johnston <erik@matrix.org>2019-12-06 11:16:37 +0000
commite216ec381af713b9bc9d629bad219f4eb6a1a884 (patch)
treec1c2d4539abd075016cc5afa0d7956d2309bb4fb
parentFix DB scripts (diff)
downloadsynapse-e216ec381af713b9bc9d629bad219f4eb6a1a884.tar.xz
Remove unused var
-rw-r--r--.buildkite/postgres-config.yaml2
-rw-r--r--.buildkite/sqlite-config.yaml2
-rw-r--r--synapse/storage/database.py2
3 files changed, 2 insertions, 4 deletions
diff --git a/.buildkite/postgres-config.yaml b/.buildkite/postgres-config.yaml
index a35fec394d..dcf72cfda0 100644
--- a/.buildkite/postgres-config.yaml
+++ b/.buildkite/postgres-config.yaml
@@ -1,7 +1,7 @@
 # Configuration file used for testing the 'synapse_port_db' script.
 # Tells the script to connect to the postgresql database that will be available in the
 # CI's Docker setup at the point where this file is considered.
-server_name: "test"
+server_name: "localhost:8080"
 
 signing_key_path: "/src/.buildkite/test.signing.key"
 
diff --git a/.buildkite/sqlite-config.yaml b/.buildkite/sqlite-config.yaml
index 635b921764..5276aaff03 100644
--- a/.buildkite/sqlite-config.yaml
+++ b/.buildkite/sqlite-config.yaml
@@ -1,7 +1,7 @@
 # Configuration file used for testing the 'synapse_port_db' script.
 # Tells the 'update_database' script to connect to the test SQLite database to upgrade its
 # schema and run background updates on it.
-server_name: "test"
+server_name: "localhost:8080"
 
 signing_key_path: "/src/.buildkite/test.signing.key"
 
diff --git a/synapse/storage/database.py b/synapse/storage/database.py
index be36c1b829..bd515d70d2 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -256,8 +256,6 @@ class Database(object):
                 self._check_safe_to_upsert,
             )
 
-        self.rand = random.SystemRandom()
-
     @defer.inlineCallbacks
     def _check_safe_to_upsert(self):
         """