From 88b3d05543561d5a34a4ff96b9a8ca9351e1a98d Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 18:38:43 +0100 Subject: move SyncSession to document --- src/swarm/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/swarm') diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs index 3cbe5f3..35bc4c7 100644 --- a/src/swarm/sync.rs +++ b/src/swarm/sync.rs @@ -355,7 +355,7 @@ pub(crate) async fn handle_sync( // to another epoch. tokio::task::spawn_blocking(move || -> Result> { // Before the lock: decoding a large message takes a while. - let message = crate::state::decode_sync(&message)?; + let message = crate::document::sync::decode(&message)?; let mut replica = doc.blocking_write(); // Authoritative check, under the same lock as the apply: the document may -- cgit v1.3.1