mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-11 23:07:47 +00:00
The Rust `ConnectionPool` takes the homeserver's `RustRuntime`, whose tokio runtime drives the pool. `make_pool`, `rust_dbapi.connect` and `make_conn` now take it too, and `DatabasePool` and `Databases` pass `hs.get_rust_runtime()`. `make_conn` falls back to a standalone runtime on the global reactor for the scripts and tests that have no homeserver to take one from. The adapter and engine tests build their pools through the shared `_make_pool` helper for the same reason. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ULdieJyQoHNzeHq42H2M1p