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/api | |
| 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/api')
| -rw-r--r-- | src/api/changes.rs | 2 | ||||
| -rw-r--r-- | src/api/peers.rs | 2 | ||||
| -rw-r--r-- | src/api/stats.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/api/changes.rs b/src/api/changes.rs index 13c8dd3..fa34029 100644 --- a/src/api/changes.rs +++ b/src/api/changes.rs @@ -139,7 +139,7 @@ fn changes( } ChangesReport { changes, more } } -/// A change the policy refused (`access::screen`): its hash, when its writer made it +/// A change the policy refused (`document::screen`): its hash, when its writer made it /// (by its clock), who made it and for whom, as it says, what it touched, and why. #[derive(Serialize)] #[serde(rename_all = "camelCase")] diff --git a/src/api/peers.rs b/src/api/peers.rs index 1f7af21..30d1204 100644 --- a/src/api/peers.rs +++ b/src/api/peers.rs @@ -52,7 +52,7 @@ pub(crate) struct PeerStatus { /// between; absent while they match. pub(crate) diverged_for_secs: Option<u64>, /// Whether we refuse it as a whole, its own change having broken the swarm's rules - /// (`access::screen`): then we send it nothing. + /// (`document::screen`): then we send it nothing. pub(crate) refused: Option<RefusedPeer>, pub(crate) has_pending_delivery: bool, /// Epoch the peer last advertised; absent until it has sent a message. diff --git a/src/api/stats.rs b/src/api/stats.rs index 37a7447..a5fe0d8 100644 --- a/src/api/stats.rs +++ b/src/api/stats.rs @@ -131,7 +131,7 @@ struct SyncStats { /// Peers whose heads differ from ours while sync is idle (`peers.md`, healing). diverged_peers: usize, /// Peers refused as a whole, their own changes having broken the swarm's rules - /// (`access::screen`): sent nothing. + /// (`document::screen`): sent nothing. refused_peers: usize, /// Changes peers say the swarm's rules refuse, which this node took unjudged and its /// rules refuse too, whose drop takes much: held for a second member to say so |
