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/sync.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/document/sync.rs') diff --git a/src/document/sync.rs b/src/document/sync.rs index 51cf9eb..2de8e60 100644 --- a/src/document/sync.rs +++ b/src/document/sync.rs @@ -24,7 +24,7 @@ pub(crate) struct Received(sync::Message); impl Received { /// The changes it carries, as their chunks, taken out of it: applied otherwise - /// (`access::screen`), what is left of it says what the peer has and needs. + /// (`document::screen`), what is left of it says what the peer has and needs. pub(crate) fn take_changes(&mut self) -> Vec { let bytes = self.0.changes.iter().flatten().copied().collect(); self.0.changes = sync::ChunkList::empty(); @@ -211,7 +211,7 @@ pub(crate) struct SyncSession { /// The latest heads the peer said that we hold all of: what it has for certain, /// where the heads we share may only be taken for its (`assume_delivered`). held_said: Vec, - /// What changes waiting in screening build on and we lack (`access::screen`): asked + /// What changes waiting in screening build on and we lack (`document::screen`): asked /// for in our next message (`lacks`). lacking: Vec, @@ -1035,7 +1035,7 @@ impl SyncSession { self.id } - /// The peer offered again only changes we refused (`access::screen`): it would as + /// The peer offered again only changes we refused (`document::screen`): it would as /// often as we answer, its sync state never learning we won't take them. No message /// to it before the returned wait, which doubles while it goes on. pub(crate) fn refused_again(&mut self, now: Instant) -> Duration { -- cgit v1.3.1