summary refs log tree commit diff
path: root/synapse/storage/background_updates.py
diff options
context:
space:
mode:
authorH. Shay <hillerys@element.io>2022-06-06 20:33:46 -0700
committerH. Shay <hillerys@element.io>2022-06-06 20:33:46 -0700
commitaf75e0d7222c1fb057ced2a93c75fb492fcbd1ba (patch)
treea253dd9d4bac086162e0d090882b26813205d439 /synapse/storage/background_updates.py
parentconditionally import sqlite and postgres in engines/__init__.py (diff)
downloadsynapse-af75e0d7222c1fb057ced2a93c75fb492fcbd1ba.tar.xz
fix import errors from moving sqlite/postgres import statements in engine
Diffstat (limited to 'synapse/storage/background_updates.py')
-rw-r--r--synapse/storage/background_updates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/background_updates.py b/synapse/storage/background_updates.py

index b1e5208c76..09d8d06855 100644 --- a/synapse/storage/background_updates.py +++ b/synapse/storage/background_updates.py
@@ -628,7 +628,7 @@ class BackgroundUpdater: logger.debug("[SQL] %s", sql) c.execute(sql) - if isinstance(self.db_pool.engine, engines.PostgresEngine): + if isinstance(self.db_pool.engine, engines.postgres.PostgresEngine): runner: Optional[Callable[[Connection], None]] = create_index_psql elif psql_only: runner = None