aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/identity.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 17:38:16 +0100
committertv <tv@krebsco.de>2026-10-28 17:38:16 +0100
commitb251a934072a99ad9d5aca84cd72462d4c2e6263 (patch)
tree37c1d57869a576053fae80ebaf801af541dd31c9 /src/transport/identity.rs
parent81d2c47bbc70ff89a9506f69c1b0f07f57f234a1 (diff)
list libp2p relays in document
Diffstat (limited to 'src/transport/identity.rs')
-rw-r--r--src/transport/identity.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/identity.rs b/src/transport/identity.rs
index 432348e..c597d77 100644
--- a/src/transport/identity.rs
+++ b/src/transport/identity.rs
@@ -540,6 +540,11 @@ impl Transport for IdentityTransport {
self.shared.paths.transports()
}
+ /// Each transport those with its scheme, without it (`Paths::learn_relays`).
+ fn learn_relays(&self, addresses: &[String]) {
+ self.shared.paths.learn_relays(addresses);
+ }
+
/// The address `encode` picks, the transport's connection there, and every path
/// to `peer` as paths measures it, best first.
fn destination(&self, peer: &str) -> Option<Destination> {