diff options
| author | tv <tv@krebsco.de> | 2026-10-24 06:09:22 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 06:09:22 +0200 |
| commit | 490234bbd44356da1cca0ad62b044e0cba70a226 (patch) | |
| tree | 74c1b840a125bc9317602c63e29cbf8f81853b3d /src/swarm/source.rs | |
| parent | e0ab17f665bb476329e0c7f980f31bb10cbfc944 (diff) | |
add swarm stats
Diffstat (limited to 'src/swarm/source.rs')
| -rw-r--r-- | src/swarm/source.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/swarm/source.rs b/src/swarm/source.rs index 36a333e..4025f0e 100644 --- a/src/swarm/source.rs +++ b/src/swarm/source.rs @@ -111,6 +111,7 @@ pub(crate) fn defer(state: &AppState, peer: &str, peer_state: &PeerState) -> Opt ), None => debug!(peer = %peer, rtt_ms, "Catching up from this peer first"), } + state.stats.catch_up_source_chosen(); *source = Some(CatchUpSource { peer: peer.to_owned(), last_heard: now, |
