summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-01-07 11:41:15 +0000
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-01-07 11:41:15 +0000
commit6b6122d63274643a1c1fb3bea468f608d811c4ef (patch)
tree77de7fcb4ccba388355729d4435d1b1e57a4a010
parentUse a nasty wrapper class (diff)
downloadsynapse-6b6122d63274643a1c1fb3bea468f608d811c4ef.tar.xz
Whoops
-rw-r--r--synapse/storage/database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py
index f713efbf90..bdffa72c88 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -110,7 +110,7 @@ def make_pool(
             class NastyConnectionWrapper:
                 def __init__(self, connection):
                     self._connection = connection
-                    self.commit = trace(conn.commit, "db.conn.commit")
+                    self.commit = trace(connection.commit, "db.conn.commit")
 
                 def __getattr__(self, item):
                     return self._connection.__getattr__(item)