mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 13:28:04 +00:00
`rust_sync` takes `off`, `shadow` or `on`, as `rust_state_res` does, and `RustHandlers.sync` is built when the main database uses the native Rust driver. The Python `SyncHandler` reads the option and takes the Rust handler, warning and keeping the Python path when the driver is not the Rust one. Nothing is served by Rust yet: the per-room entry points come with the ports that follow. Trial gets the same plumbing the state resolution has: `SYNAPSE_TEST_ RUST_SYNC` sets the option on every test homeserver, and the Rust handler is wrapped so that each entry point's `_blocking` twin answers under the fake reactor. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0194eNQP5weBtVMg8NKtc6VU
2 lines
136 B
Plaintext
2 lines
136 B
Plaintext
Add a Rust sync handler behind `experimental_features.rust_sync`, with the shared Rust store caches and deferred cancellation it needs.
|