diff options
Diffstat (limited to 'src/transport/identity.rs')
| -rw-r--r-- | src/transport/identity.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/transport/identity.rs b/src/transport/identity.rs index bfd9432..04375f6 100644 --- a/src/transport/identity.rs +++ b/src/transport/identity.rs @@ -504,6 +504,20 @@ impl Transport for IdentityTransport { self.shared.destination(peer).is_some() } + /// Each transport's, with its scheme. + fn discovered_seeds(&self) -> Vec<String> { + self.shared + .links + .iter() + .flat_map(|link| { + link.inner + .discovered_seeds() + .into_iter() + .map(|seed| link.address(&seed)) + }) + .collect() + } + /// A node ID resolves to itself if this node knows where it is; anything else is /// an address (`<scheme>:...`) or what one of the transports resolves to one (the /// first that does), asked WHO. |
