aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/identity.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 21:00:18 +0100
committertv <tv@krebsco.de>2026-11-01 21:00:18 +0100
commitda18be3c9bbfdd5b3b4ff19f48863a7badf6074d (patch)
tree64e3db8fd39a59bbce8dd75b7381e48a9aff27c6 /src/transport/identity.rs
parent83b2f9efbbcedea3297fea6754ea4a0e7ac6b3e0 (diff)
path probes follow keepalive
Diffstat (limited to 'src/transport/identity.rs')
-rw-r--r--src/transport/identity.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/identity.rs b/src/transport/identity.rs
index 3ac06cb..8ef0535 100644
--- a/src/transport/identity.rs
+++ b/src/transport/identity.rs
@@ -246,13 +246,14 @@ impl Book {
impl IdentityTransport {
/// Over `transport`, whose addresses have `config.scheme`, and `config.more`.
/// `firewall`: the debug firewall, if any, which paths applies by address; `clock`:
- /// the node's wall clock (`Paths::new`).
+ /// the node's wall clock; `keepalive`: the node's keepalive interval (`Paths::new`).
pub(crate) fn new(
transport: Arc<dyn Transport>,
config: IdentityConfig,
traffic: Arc<Traffic>,
firewall: Option<Arc<Firewall>>,
clock: Arc<crate::clock::Clock>,
+ keepalive: Duration,
) -> Self {
let node_id = config.key.id();
let shared = Arc::new_cyclic(|shared: &std::sync::Weak<Shared>| {
@@ -265,6 +266,7 @@ impl IdentityTransport {
Some(Arc::clone(&traffic)),
firewall.is_some().then_some(gate),
clock,
+ keepalive,
)),
firewall,
key: config.key,