mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-15 13:30:47 +00:00
Rename the HomeServer wrapper accessors to mirror the Python methods they call (get_rust_runtime, get_clock), so the wrapper reads 1:1 against synapse/server.py. Make RustRuntime itself a cheaply-clonable handle (Clone + Deref to RustRuntimeInner) rather than exposing Arc<RustRuntimeInner> in signatures. With pyo3's opt-in from_py_object extraction, the same class serves as both the Python-facing object and the Rust-side handle: consumers now declare `runtime: RustRuntime` in their constructors and pyo3 clones it out (an Arc refcount bump), so no separate Py-wrapper type is needed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HyuiV3m44ZbK9o24EnMMES