mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-11 12:17:54 +00:00
- `StateResEvent` wraps a plain `Event`. An event handed in from Python is
a shallow copy sharing the Python object's data (its internal metadata
included), so the `EventSource::{Python, Rust}` enum and the separate
constructors go.
- `CpuStats` folds into `ResolveStats`, and the store's five atomic
counters become one `Mutex<DbStats>`.
- `prepare` takes the state already split by `separate`, as the handler
needs; the three-line `prepare` wrapper that called `separate` itself is
gone and `prepare_separated` takes its name.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULdieJyQoHNzeHq42H2M1p