aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/traffic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/traffic.rs')
-rw-r--r--src/transport/traffic.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transport/traffic.rs b/src/transport/traffic.rs
index 041471d..21acca6 100644
--- a/src/transport/traffic.rs
+++ b/src/transport/traffic.rs
@@ -134,6 +134,11 @@ pub(crate) struct Logged {
/// exchange.
#[serde(skip_serializing_if = "Option::is_none")]
pub(crate) related: Option<String>,
+ /// The address it went to or came from, where the paths layer logged it under that
+ /// (its own PINGs and PONGs) and the node there is known: `peer` is the node then
+ /// (`api::dashboard`).
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub(crate) address: Option<String>,
}
/// What ties `message`, with `peer`, to other messages: a PING and its PONG (the
@@ -210,6 +215,7 @@ impl MessageLog {
bytes,
text,
related: related(peer, message),
+ address: None,
});
if inner.entries.len() > LOGGED {
inner.entries.pop_front();