From 4e53e152f83ecb88fa162e0a18e6832df5a38fef Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 05:38:20 +0100 Subject: round trips in trees --- src/state/peer.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/state/peer.rs') diff --git a/src/state/peer.rs b/src/state/peer.rs index 231f320..4923f0f 100644 --- a/src/state/peer.rs +++ b/src/state/peer.rs @@ -159,6 +159,9 @@ pub(crate) struct PeerState { pub(crate) slow_announced_at: Option, /// Whom it said it reaches (`swarm::reach`), by pair key, and when. pub(crate) reaches: Option<(Instant, Vec)>, + /// Its round trip to each of them, in their order, as a bucket + /// (`Status::round_trips`); None if it said none, or not one each. + pub(crate) round_trips: Option>, /// Whose change the next sync message to it passes on along the writer's tree /// (`swarm::tree`); taken when it is generated. pub(crate) tree_writer: Option, @@ -297,6 +300,7 @@ impl PeerState { hop_delays: Default::default(), slow_announced_at: None, reaches: None, + round_trips: None, tree_writer: None, left: false, hello_attempts: 0, @@ -316,6 +320,7 @@ impl PeerState { self.sync = SyncSession::new(reply_backoff); // Said over the session that ended. self.reaches = None; + self.round_trips = None; } /// An overdue sync answer from an established, active peer (see -- cgit v1.3.1