mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 16:51:34 +00:00
swarm: Extend NetworkBehaviour callbacks. (#2011)
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
@ -187,7 +187,7 @@ where
|
||||
///
|
||||
/// The translation is transport-specific. See [`Transport::address_translation`].
|
||||
pub fn address_translation<'a>(&'a self, observed_addr: &'a Multiaddr)
|
||||
-> impl Iterator<Item = Multiaddr> + 'a
|
||||
-> Vec<Multiaddr>
|
||||
where
|
||||
TMuxer: 'a,
|
||||
THandler: 'a,
|
||||
@ -201,7 +201,7 @@ where
|
||||
addrs.sort_unstable();
|
||||
addrs.dedup();
|
||||
|
||||
addrs.into_iter()
|
||||
addrs
|
||||
}
|
||||
|
||||
/// Returns the peer id of the local node.
|
||||
|
Reference in New Issue
Block a user