summaryrefslogtreecommitdiffstats
path: root/src/swarm/sync.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 05:58:37 +0200
committertv <tv@krebsco.de>2026-10-24 05:58:37 +0200
commite0ab17f665bb476329e0c7f980f31bb10cbfc944 (patch)
treed2a76c673eb19cfa2f94563178d01c9ee151962f /src/swarm/sync.rs
parent78b0a3a239a4a5921a0504bc040e5303cac5b979 (diff)
add traffic counter
This introduces a new wrapper that counts messages and payload bytes per peer, split by kind (hello, helloReply, sync, ping, pong), each sent, received and refused. The traffic counter goes around the firewall, which means messages dropped outbound are still counted as sent, and messages dropped inbound don't count as received.
Diffstat (limited to 'src/swarm/sync.rs')
0 files changed, 0 insertions, 0 deletions