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 | d7433f9d34c299e7ce31542aede80d2530c1e45f (patch) | |
| tree | e6653872b6822a1b04523d8b8444b75d972ba783 /src/swarm/changes.rs | |
| parent | 3e115a7e9cc5846d6c1025a7297a006c2d64709b (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()); } |
