aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/traffic.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 02:54:55 +0100
committertv <tv@krebsco.de>2026-10-28 02:54:55 +0100
commit16e9941f112a70effe7db80c378aab9d462ef034 (patch)
tree7895efc590531b3679e2d77e6d1d765bc6ccd12d /src/transport/traffic.rs
parentfabdfc5f7e34033a4049fddb1876d7277291fc2e (diff)
move keepalive and firewall to paths
Diffstat (limited to 'src/transport/traffic.rs')
-rw-r--r--src/transport/traffic.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/traffic.rs b/src/transport/traffic.rs
index 9b5f9c9..b070023 100644
--- a/src/transport/traffic.rs
+++ b/src/transport/traffic.rs
@@ -5,8 +5,8 @@
//! (for Mycelium: the topic, or the base64 of its HTTP API). Counters only grow (from
//! the start of the process); rates are for whoever reads them.
//!
-//! A message dropped by the debug firewall still counts as sent (the firewall plays a
-//! lossy network) but not as received.
+//! A message dropped by the debug firewall (in the paths layer, below) still counts as
+//! sent (the firewall plays a lossy network) but not as received.
use std::collections::HashMap;
use std::sync::{Arc, Mutex, MutexGuard};
@@ -188,6 +188,10 @@ impl Transport for CountingTransport {
self.inner.stats()
}
+ fn answers_pings(&self) -> bool {
+ self.inner.answers_pings()
+ }
+
async fn resolve_seed(&self, seed: &str) -> Result<String> {
self.inner.resolve_seed(seed).await
}