summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-09-27 18:02:47 +0100
committerDavid Robertson <davidr@element.io>2022-09-30 22:51:22 +0100
commita591a3f7783d6a17ac9350d431ec00d6d8e5a45e (patch)
tree5e183b30d58afbfe8a67c291357ae3ddfd2e4d8f
parentClarifications in user directory for users who share rooms tracking (#13966) (diff)
downloadsynapse-a591a3f7783d6a17ac9350d431ec00d6d8e5a45e.tar.xz
inner_func takes a twisted Connection object
-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 a252f8eaa0..f952cf946c 100644
--- a/synapse/storage/database.py
+++ b/synapse/storage/database.py
@@ -916,7 +916,7 @@ class DatabasePool:
 
         start_time = monotonic_time()
 
-        def inner_func(conn, *args, **kwargs):
+        def inner_func(conn: adbapi.Connection, *args, **kwargs):
             # We shouldn't be in a transaction. If we are then something
             # somewhere hasn't committed after doing work. (This is likely only
             # possible during startup, as `run*` will ensure changes are