mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-18 08:40:44 +00:00
Small robustness fixes to `RustConnectionPool`, independent of any query path: guard `connectionFactory` against a closed pool (a clear error rather than an `AttributeError` on `None`), snapshot the per-thread connections before closing them so a concurrent `connect()` can't mutate the dict mid-iteration, drop the now-unused `defer_to_threadpool` import, and correct the class docstring to describe the raw-`Deferred` contract. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W3G4M92AmwSSZCbmtMJU3d