diff options
| author | tv <tv@krebsco.de> | 2026-11-04 22:15:18 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-04 22:15:18 +0100 |
| commit | a1585a3db53ee59fe941622d698638322b585267 (patch) | |
| tree | 097f53b4cb6efe4e0da54d01f960a707cc0b7922 /src/state/peer.rs | |
| parent | e1e6c8b8faead6c348f1b775baa50a30867c0016 (diff) | |
hop delays
Diffstat (limited to 'src/state/peer.rs')
| -rw-r--r-- | src/state/peer.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/peer.rs b/src/state/peer.rs index 8f79886..787a772 100644 --- a/src/state/peer.rs +++ b/src/state/peer.rs @@ -153,6 +153,8 @@ pub(crate) struct PeerState { /// with its epoch: once they are ours, it has every change we would announce to it /// (`swarm::relay`). pub(crate) last_heads: Option<(transport::Epoch, transport::HeadsSummary)>, + /// How long its sync messages took to come (`swarm::hop`). + pub(crate) hop_delays: crate::swarm::hop::HopDelays, /// When we last told it our heads in a slow round (`swarm::relay::SlowRounds`). pub(crate) slow_announced_at: Option<Instant>, /// Whom it said it reaches (`swarm::reach`), by pair key, and when. @@ -288,6 +290,7 @@ impl PeerState { syncs_with_us: None, reported_heads: None, last_heads: None, + hop_delays: Default::default(), slow_announced_at: None, reaches: None, tree_writer: None, |
