mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 01:21:09 +03:00
Fix lack of PostgresEngine imported
This commit is contained in:
parent
484845524f
commit
e4550d4c64
1 changed files with 2 additions and 3 deletions
|
@ -2279,7 +2279,6 @@ class EventsWorkerStore(SQLBaseStore):
|
|||
"""
|
||||
|
||||
def get_event_id_for_timestamp_txn(txn: LoggingTransaction) -> Optional[str]:
|
||||
if isinstance(self.database_engine, PostgresEngine):
|
||||
# Temporary: make sure these queries can't last more than 30s
|
||||
txn.execute("SET LOCAL statement_timeout = 30000")
|
||||
|
||||
|
|
Loading…
Reference in a new issue