diff options
| author | tv <tv@krebsco.de> | 2026-11-01 22:31:49 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 22:31:49 +0100 |
| commit | 3adacb1818816da62f636a29f5d88103eca633e2 (patch) | |
| tree | 569b0ca89970e79ec2584d8d0e6f23e0d64c6ac6 /src/swarm/changes.rs | |
| parent | b5d29103f19db42fb2f813f551e0ada68bc1c782 (diff) | |
document: introduce patch log
Diffstat (limited to 'src/swarm/changes.rs')
| -rw-r--r-- | src/swarm/changes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/changes.rs b/src/swarm/changes.rs index 8565cb6..0f22f52 100644 --- a/src/swarm/changes.rs +++ b/src/swarm/changes.rs @@ -8,7 +8,7 @@ use std::sync::Arc; use tracing::{info, warn}; use crate::document::changes; -use crate::document::store::{self, ChangeSet, InLists}; +use crate::document::store::{ChangeSet, InLists}; use crate::state::AppState; pub(crate) async fn run_change_publisher(state: AppState) { @@ -37,7 +37,7 @@ pub(crate) async fn run_change_publisher(state: AppState) { let mut paths = Vec::new(); let mut conflicts = Vec::new(); - for changed in store::changed(&replica.doc, &before, &heads, InLists::Index) { + for changed in replica.changed_since(&before, InLists::Index) { if changed.conflict { conflicts.push(changed.path.clone()); } |
