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 | 84582abb56653d1f58d9e838b242f48d8a4ea557 (patch) | |
| tree | c9e7d4ee56d3d89671bd8e88fb77713c876b1249 /src/swarm/sync.rs | |
| parent | 1d0b1646c5cbb9cb177369189539a2bf0d132ba8 (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 |
