summaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-27 00:33:03 +0100
committertv <tv@krebsco.de>2026-10-27 00:33:03 +0100
commit7af8f58d46737bb5835aa1625485f22ecf374ebe (patch)
tree4a2c82a4cc83fa7c14673f98a14c81d3ff0822a0 /src/transport/mod.rs
parentef4ec226ef720f4c3bdba5ae534465f67cda04ee (diff)
add Transport::delivery_limit
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index febbdf0..d97c51c 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -486,6 +486,10 @@ pub(crate) trait Transport: Send + Sync {
/// key). Identities other peers name to us (in a HELLO_REPLY) are checked with it.
fn is_peer_id(&self, id: &str) -> bool;
+ /// How long the transport tries to deliver a message before dropping it: after that,
+ /// a message sent is delivered or lost for good.
+ fn delivery_limit(&self) -> std::time::Duration;
+
/// Resolves a seed (anything that leads to a node, e.g. an address) to that node's
/// identity, as `local_id` gives it on that node.
async fn resolve_seed(&self, seed: &str) -> Result<String>;