mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-05 00:17:57 +00:00
`TransactionSender` builds `/send` transactions and sends them through the Rust federation client, with the options `send_transaction` uses. It reads the response and returns the ids of the PDUs the remote accepted. `Event::to_pdu_value` builds the PDU JSON from the Rust event without the GIL. `RustTransactionManager` is the Python facade. It takes the events and EDU dicts, and returns a Deferred. A response body that serde_json refuses goes to Python's decoder, as `JsonParser` would. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R5b7Ruy4cgt27Mjq6Ptxbb