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,9 +2279,8 @@ class EventsWorkerStore(SQLBaseStore):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def get_event_id_for_timestamp_txn(txn: LoggingTransaction) -> Optional[str]:
|
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
|
||||||
# Temporary: make sure these queries can't last more than 30s
|
txn.execute("SET LOCAL statement_timeout = 30000")
|
||||||
txn.execute("SET LOCAL statement_timeout = 30000")
|
|
||||||
|
|
||||||
txn.execute(
|
txn.execute(
|
||||||
sql_template,
|
sql_template,
|
||||||
|
|
Loading…
Reference in a new issue