diff options
| author | tv <tv@krebsco.de> | 2026-11-03 06:11:06 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-03 06:11:06 +0100 |
| commit | b16977b18fdd1e5193f5c015eadcb61a63f4fae1 (patch) | |
| tree | 197a9fb7c0c0f5d5b799ecc3f3363c628a4f5e12 /src/api/stats.rs | |
| parent | 698ab19bb74e1dbbc7c52fef96caede4d92caf55 (diff) | |
announcement round counters
Diffstat (limited to 'src/api/stats.rs')
| -rw-r--r-- | src/api/stats.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/api/stats.rs b/src/api/stats.rs index 96e8ad3..0bdb1b6 100644 --- a/src/api/stats.rs +++ b/src/api/stats.rs @@ -137,6 +137,10 @@ struct SyncStats { #[serde(rename_all = "camelCase")] struct RelayStats { announce_rounds: u64, + /// Of those, quick ones to all neighbours (some change had no writer's tree), and + /// slow ones (`swarm::relay`). + treeless_rounds: u64, + slow_rounds: u64, pulls: u64, /// Announcements of heads we lacked that waited for the pull in progress. pulls_queued: u64, @@ -340,6 +344,8 @@ pub(crate) async fn collect(state: &AppState, list: &PeerListResponse) -> StatsR }, relay: RelayStats { announce_rounds: node.relay.announce_rounds, + treeless_rounds: node.relay.treeless_rounds, + slow_rounds: node.relay.slow_rounds, pulls: node.relay.pulls, pulls_queued: node.relay.pulls_queued, tree_forwards: node.relay.tree_forwards, |
