summaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs7
1 files changed, 7 insertions, 0 deletions
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<Destination> {