aboutsummaryrefslogtreecommitdiffstats
path: root/src/state
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-05 21:28:47 +0100
committertv <tv@krebsco.de>2026-11-05 21:28:47 +0100
commitb0ddfeccbc04a39196717e81daa5dc3aa0f42c69 (patch)
treef4659352c794d2c3bb9c94a8f554d525f0059475 /src/state
parente77e54fe6f7aeba6e52e7ba48f763e7137e15c64 (diff)
asks by asker
Diffstat (limited to 'src/state')
-rw-r--r--src/state/peer.rs5
1 files changed, 5 insertions, 0 deletions
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,
}
}