From 2a475153b715c954935ae46d3773ffbf3d007f03 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 04:05:41 +0000 Subject: document: where a document stands, and a peer, is the document's to compare document::passing: a Mark, where a document stood, by which what changed since and the node's own units since are told (changed_since, own_since: the change publisher, the sync worker); and of where a peer says it stands, what the document lacks, whether the peer holds what the document held, a pull of what is lacking, and what it has counting as sent no more (lacking, peer_holds, pull, heard: the relay, keepalives). The published stamp gives its summary and its mark. --- src/transport/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/transport') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 6fe17eb..4fa3ec3 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -861,6 +861,12 @@ pub(crate) struct DeltaSignatures { } impl DeltaSpec { + /// Where whoever offers it stands, as a keepalive would say it: what it offers is + /// what it has. + pub(crate) fn stands(&self) -> HeadsSummary { + HeadsSummary::of(self.to.clone()) + } + pub(crate) fn new(mut from: Vec, mut to: Vec) -> Self { from.sort_unstable(); from.dedup(); -- cgit v1.3.1