diff options
author | David Robertson <davidr@element.io> | 2022-09-27 18:02:47 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2022-09-30 22:51:22 +0100 |
commit | a591a3f7783d6a17ac9350d431ec00d6d8e5a45e (patch) | |
tree | 5e183b30d58afbfe8a67c291357ae3ddfd2e4d8f | |
parent | Clarifications in user directory for users who share rooms tracking (#13966) (diff) | |
download | synapse-a591a3f7783d6a17ac9350d431ec00d6d8e5a45e.tar.xz |
inner_func takes a twisted Connection object
-rw-r--r-- | synapse/storage/database.py | 2 |
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 |