diff options
| author | tv <tv@krebsco.de> | 2026-10-31 13:29:49 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 13:29:49 +0100 |
| commit | 8cd27703c6ff8247dd8296cee1b9127c368811f4 (patch) | |
| tree | 3123797c34a8692307957c5897e542780b16deeb /src/swarm/sync.rs | |
| parent | a3d27a7e20f0279d34bb683782947658c48d8300 (diff) | |
move changes as bytes to document
Diffstat (limited to 'src/swarm/sync.rs')
| -rw-r--r-- | src/swarm/sync.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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 |
