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/document/bench.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/document/bench.rs') diff --git a/src/document/bench.rs b/src/document/bench.rs index db76ccc..09095fa 100644 --- a/src/document/bench.rs +++ b/src/document/bench.rs @@ -31,7 +31,7 @@ //! document, each once. //! //! `screening`: what judging every change received costs while catching up -//! (`access::screen`), against applying them unjudged, as a node whose document has no +//! (`document::screen`), against applying them unjudged, as a node whose document has no //! policy does now: many changes into an empty document, as one delta brings them; //! judged with no policy in them (each passes, read at its dependencies, after its //! paths were found), and with the policy their first change wrote (each judged by the @@ -638,7 +638,7 @@ fn nested_on(mut doc: Document, changes: usize, actors: usize) -> Document { } /// The time to take `doc`'s changes into an empty document: unjudged, as Automerge -/// applies them; and screened (`access::screen::apply`). +/// applies them; and screened (`document::screen::apply`). fn screening_costs(workload: &str, doc: &Document) { let raw: Vec> = doc .get_changes(&[]) @@ -661,13 +661,13 @@ fn screening_costs(workload: &str, doc: &Document) { let changes = changes(); let mut empty = Document::new(); let started = Instant::now(); - let screened = crate::access::screen::apply( + let screened = crate::document::screen::apply( &mut empty, Epoch::GENESIS, false, changes, - &mut crate::access::screen::Waiting::default(), - &mut crate::access::screen::Refusals::default(), + &mut crate::document::screen::Waiting::default(), + &mut crate::document::screen::Refusals::default(), None, &mut crate::document::PatchLog::inactive(), ) -- cgit v1.3.1