From b0ddfeccbc04a39196717e81daa5dc3aa0f42c69 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 21:28:47 +0100 Subject: asks by asker --- 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 4923f0f..e2a47ec 100644 --- a/src/state/peer.rs +++ b/src/state/peer.rs @@ -182,6 +182,10 @@ pub(crate) struct PeerState { /// What went wrong with this peer so far (counted only, for /peers and /admin/stats). pub(crate) incidents: Incidents, + /// Changes it asked for that we had counted as its, as another parent in their + /// writer's tree brings them (`SyncSession::resend_if_needed`): per asker, for the + /// bench (`simtest::bench`). + pub(crate) asked_known: u64, /// The largest sync message to it that didn't make it (its send failed, or it went /// unanswered), in bytes, and when: messages about that large go as deltas for a @@ -307,6 +311,7 @@ impl PeerState { last_hello_at: None, unreachable_since: None, incidents: Incidents::default(), + asked_known: 0, whole_failed: None, } } -- cgit v1.3.1