From d7959009790a422ebb17d4c4ab1d9be3d48dc511 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 17:38:16 +0100 Subject: list libp2p relays in document --- src/transport/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/transport/mod.rs') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 7cd976b..fb13ad9 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -683,6 +683,13 @@ pub(crate) trait Transport: Send + Sync { let _ = (peer, addresses); } + /// The relays listed for the swarm (`swarm::members::relays`), as addresses: under + /// the identity layer, each transport is given those with its scheme, without it. + /// By default nothing to learn. + fn learn_relays(&self, addresses: &[String]) { + let _ = addresses; + } + /// Where messages to `peer` go now. None if nowhere, and by default, for a /// transport whose identities are addresses (`peer` is where they go). fn destination(&self, peer: &str) -> Option { -- cgit v1.3.1