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/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/state/mod.rs') diff --git a/src/state/mod.rs b/src/state/mod.rs index 4187654..ccd8a93 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -168,8 +168,8 @@ pub(crate) struct AppState { /// (`--sign-every`). pub(crate) sign_every: SignEvery, /// Received changes waiting for their dependencies, and those refused, while the - /// policy has them judged (`access::screen`). Locked after the document. - pub(crate) screening: Arc>, + /// policy has them judged (`document::screen`). Locked after the document. + pub(crate) screening: Arc>, /// The challenges logins by key used, until they expire (`access::challenge`). pub(crate) challenges: Arc>, /// Sessions ended on this node in a swarm without a registry, where they can't be @@ -327,7 +327,7 @@ impl AppState { /// until it synced once with a ready neighbour (`release_writes`, `swarm::sync`), or /// `KEPT_WRITER_WAIT` passed: so that a neighbour holding later changes of that writer, /// which another copy of its files made (a backup restored, a disk rolled back), hands - /// them over first, and the node takes a fresh writer then (`access::screen`). + /// them over first, and the node takes a fresh writer then (`document::screen`). pub(crate) fn hold_writes(&self) { self.writes_held.send_replace(true); let held = Arc::clone(&self.writes_held); -- cgit v1.3.1