aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/traffic.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 02:18:01 +0100
committertv <tv@krebsco.de>2026-10-28 02:18:01 +0100
commitfabdfc5f7e34033a4049fddb1876d7277291fc2e (patch)
tree143cc882a642942c8a0c0d93dcdd1c1dd24ed866 /src/transport/traffic.rs
parent5a1cc7e0e5272d4e4cb35f6aa4671b3c73ba69a8 (diff)
measure paths
Diffstat (limited to 'src/transport/traffic.rs')
-rw-r--r--src/transport/traffic.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/traffic.rs b/src/transport/traffic.rs
index 2134521..9b5f9c9 100644
--- a/src/transport/traffic.rs
+++ b/src/transport/traffic.rs
@@ -43,6 +43,8 @@ pub(crate) struct ByKind {
/// WHO and ME (`transport::identity`), counted by the identity layer under the
/// address they went to or came from.
pub(crate) identity: Counter,
+ /// PING and PONG (`transport::paths`), counted by the paths layer under the address.
+ pub(crate) paths: Counter,
}
impl ByKind {
@@ -55,6 +57,7 @@ impl ByKind {
MessageKind::StatusReply => &mut self.status_reply,
MessageKind::Blob => &mut self.blob,
MessageKind::Who | MessageKind::Me => &mut self.identity,
+ MessageKind::Ping | MessageKind::Pong => &mut self.paths,
}
}
}