From 24327be7e09c20a9820eac61ba3ac60fb7bdb424 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 02:18:01 +0100 Subject: measure paths --- src/transport/traffic.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/transport/traffic.rs') 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, } } } -- cgit v1.3.1