diff options
| author | tv <tv@krebsco.de> | 2026-10-28 02:18:01 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 02:19:50 +0100 |
| commit | 24327be7e09c20a9820eac61ba3ac60fb7bdb424 (patch) | |
| tree | f2a1b0b7321c4b1912297fb0725c3ee5800af948 /src/transport/traffic.rs | |
| parent | 3c56f0df5c23b5c8d4bc4cc748cbd18812910ffe (diff) | |
measure paths
Diffstat (limited to 'src/transport/traffic.rs')
| -rw-r--r-- | src/transport/traffic.rs | 3 |
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, } } } |
