diff options
| author | tv <tv@krebsco.de> | 2026-11-07 22:35:10 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-07 22:35:10 +0100 |
| commit | 0e03a77bcb1d39f1fbda23d8e704ac40302afb93 (patch) | |
| tree | 79245416e9721cdccb1b6879b8f1cfc43629cc74 /src/transport/traffic.rs | |
| parent | c016fc783ff29e9069a446e17876046df64760a8 (diff) | |
dashboard: without LINKS; LINKS removed
The dashboard reads every member's links from the members themselves;
LINKS and LINKS_REPLY, swarm::links and their wire tags go (wire
version bumped). Nodes the browser can't reach are drawn from what the
reachable ones measure.
Auth plan M3.
Diffstat (limited to 'src/transport/traffic.rs')
| -rw-r--r-- | src/transport/traffic.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/transport/traffic.rs b/src/transport/traffic.rs index 8220041..13ca9fa 100644 --- a/src/transport/traffic.rs +++ b/src/transport/traffic.rs @@ -51,8 +51,6 @@ pub(crate) struct ByKind { pub(crate) identity: Counter, /// PING and PONG (`transport::paths`), counted by the paths layer under the address. pub(crate) paths: Counter, - /// LINKS and LINKS_REPLY (`swarm::links`). - pub(crate) links: Counter, /// PROBE and PROBE_REPLY (`swarm::working_links`). pub(crate) probe: Counter, /// PRUNE and GRAFT (`swarm::plumtree`). @@ -72,7 +70,6 @@ impl ByKind { MessageKind::Blob, MessageKind::Who, MessageKind::Ping, - MessageKind::Links, MessageKind::Probe, MessageKind::Prune, MessageKind::Neighbour, @@ -92,7 +89,6 @@ impl ByKind { MessageKind::Blob => &self.blob, MessageKind::Who | MessageKind::Me => &self.identity, MessageKind::Ping | MessageKind::Pong => &self.paths, - MessageKind::Links | MessageKind::LinksReply => &self.links, MessageKind::Probe | MessageKind::ProbeReply => &self.probe, MessageKind::Prune | MessageKind::Graft => &self.plumtree, MessageKind::Neighbour | MessageKind::NeighbourReply | MessageKind::Disconnect => { @@ -111,7 +107,6 @@ impl ByKind { MessageKind::Blob => &mut self.blob, MessageKind::Who | MessageKind::Me => &mut self.identity, MessageKind::Ping | MessageKind::Pong => &mut self.paths, - MessageKind::Links | MessageKind::LinksReply => &mut self.links, MessageKind::Probe | MessageKind::ProbeReply => &mut self.probe, MessageKind::Prune | MessageKind::Graft => &mut self.plumtree, MessageKind::Neighbour | MessageKind::NeighbourReply | MessageKind::Disconnect => { @@ -199,7 +194,7 @@ pub(crate) struct Logged { /// What ties `message`, with `peer`, to other messages: a PING and its PONG (the /// nonce alone: a PING may go to an address and its PONG come back up from the node -/// there, `paths`), a LINKS and its replies (the nonce), a HELLO and its replies (the run of the +/// there, `paths`), a HELLO and its replies (the run of the /// node that sent the HELLO, which the reply echoes), a blob's requests and answers, from /// any peer (its ID), and a delta offered in a SYNC with the blob it is fetched as. None /// for the rest (a STATUS and its reply carry nothing of the kind). @@ -209,8 +204,6 @@ fn related(peer: &str, message: &ParsedMessage) -> Option<String> { ParsedMessage::Ping(nonce) | ParsedMessage::Pong { nonce, .. } => { format!("ping {nonce}") } - ParsedMessage::Links(request) => format!("links {peer} {}", request.nonce), - ParsedMessage::LinksReply(reply) => format!("links {peer} {}", reply.nonce), ParsedMessage::Probe(request) => format!("probe {peer} {}", request.nonce), ParsedMessage::ProbeReply(reply) => format!("probe {peer} {}", reply.nonce), ParsedMessage::Hello(hello) => format!("hello {peer} {}", Hex(&hello.run_id)), @@ -321,8 +314,6 @@ fn names(kind: MessageKind) -> (&'static str, &'static str) { MessageKind::Me => ("ME", "identity"), MessageKind::Ping => ("PING", "paths"), MessageKind::Pong => ("PONG", "paths"), - MessageKind::Links => ("LINKS", "links"), - MessageKind::LinksReply => ("LINKS_REPLY", "links"), MessageKind::Probe => ("PROBE", "probe"), MessageKind::ProbeReply => ("PROBE_REPLY", "probe"), MessageKind::Prune => ("PRUNE", "plumtree"), |
