From 10f4e55b1c7d88eef1454ea02488de239489789b Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 03:04:13 +0000 Subject: document: screening what is received is the document's, the rules access control's access::screen becomes document::screen: reading received bytes as changes, putting them in order, keeping those that wait or are refused, vouching by signatures and applying is all Automerge's shape, and has each change judged by the rules (access::rules) before it applies it. --- src/state/host.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/state/host.rs') diff --git a/src/state/host.rs b/src/state/host.rs index 2fac94b..4ef12a1 100644 --- a/src/state/host.rs +++ b/src/state/host.rs @@ -160,10 +160,10 @@ impl AppState { } }; let paths = dropped.own_paths; - let theirs: Vec = dropped + let theirs: Vec = dropped .theirs .into_iter() - .map(|theirs| crate::access::screen::Refused { + .map(|theirs| crate::document::screen::Refused { change: theirs.change, committer: theirs.committer, user: theirs.user, @@ -559,12 +559,12 @@ impl Host for AppState { tokio::task::spawn_blocking(move || { let result = { let mut replica = state.doc.blocking_write(); - // Judged first (`access::screen`), whether this document has a policy + // Judged first (`document::screen`), whether this document has a policy // yet or not. let result = { let (epoch, epoch_seq) = (replica.epoch, replica.epoch_seq); let replica = &mut *replica; - crate::access::screen::apply_bytes( + crate::document::screen::apply_bytes( &mut replica.doc, epoch, epoch_seq, -- cgit v1.3.1