From 8cd27703c6ff8247dd8296cee1b9127c368811f4 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 13:29:49 +0100 Subject: move changes as bytes to document --- src/swarm/sync.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/swarm/sync.rs') diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs index 772932d..40e577a 100644 --- a/src/swarm/sync.rs +++ b/src/swarm/sync.rs @@ -503,10 +503,7 @@ async fn download_and_apply_delta( bail!("the epoch changed during the download"); } let heads_before = replica.heads().to_vec(); - replica - .doc - .load_incremental(&bytes) - .context("Loading the downloaded changes")?; + crate::document::changes::load_delta(&mut replica.doc, &bytes)?; replica.refresh_heads(); let missing = spec .to -- cgit v1.3.1