This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Description
A somewhat recent change in Synapse enabled by default the behaviour of reconnecting to the Postgres database after losing connection automatically.
We likely want to consider doing the same for Sygnal.
|
if db_name == "psycopg2": |
|
logger.info("Using postgresql database") |
|
self.database_engine = "postgresql" |
|
self.database = ConnectionPool( |
|
"psycopg2", cp_reactor=self.reactor, **config["database"].get("args") |
|
) |