mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-03 19:51:33 +00:00
Swarm::dial adds addresses when pending (#919)
* Swarm::dial adds addresses when pending * Bump libp2p-core to 0.3.3
This commit is contained in:
@ -1613,6 +1613,15 @@ where
|
||||
self.attempt.get().next_attempts.iter()
|
||||
}
|
||||
|
||||
/// Adds new multiaddrs to attempt if the current dialing fails.
|
||||
///
|
||||
/// Doesn't do anything for multiaddresses that are already in the queue.
|
||||
pub fn append_multiaddr_attempts(&mut self, addrs: impl IntoIterator<Item = Multiaddr>) {
|
||||
for addr in addrs {
|
||||
self.append_multiaddr_attempt(addr);
|
||||
}
|
||||
}
|
||||
|
||||
/// Adds a new multiaddr to attempt if the current dialing fails.
|
||||
///
|
||||
/// Doesn't do anything if that multiaddress is already in the queue.
|
||||
|
Reference in New Issue
Block a user