mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 09:31:20 +00:00
swarm: Provide peer_id to inject_dial_failure on connection limit error (#2928)
This commit is contained in:
@ -535,7 +535,7 @@ where
|
||||
Ok(_connection_id) => Ok(()),
|
||||
Err((connection_limit, handler)) => {
|
||||
let error = DialError::ConnectionLimit(connection_limit);
|
||||
self.behaviour.inject_dial_failure(None, handler, &error);
|
||||
self.behaviour.inject_dial_failure(peer_id, handler, &error);
|
||||
Err(error)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user