diff options
| author | tv <tv@krebsco.de> | 2026-11-29 03:04:13 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-29 03:04:13 +0000 |
| commit | 10f4e55b1c7d88eef1454ea02488de239489789b (patch) | |
| tree | 68d698c7fd0874cbf55318040c48b2024bf98e22 /src/state/mod.rs | |
| parent | 2b4e99e1ed273da0f921eaec3e52300480acdf0a (diff) | |
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.
Diffstat (limited to 'src/state/mod.rs')
| -rw-r--r-- | src/state/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<std::sync::Mutex<crate::access::screen::Screening>>, + /// policy has them judged (`document::screen`). Locked after the document. + pub(crate) screening: Arc<std::sync::Mutex<crate::document::screen::Screening>>, /// The challenges logins by key used, until they expire (`access::challenge`). pub(crate) challenges: Arc<std::sync::Mutex<crate::access::challenge::Used>>, /// 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); |
