Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Jul 13, 2023
1 parent 827faa0 commit d3db4f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connection-pool/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ use libp2p::core::Endpoint;
use libp2p::swarm::dial_opts::DialOpts;
use libp2p::swarm::CloseConnection::All;
use libp2p::swarm::{
dial_opts, ConnectionDenied, ConnectionId, DialError, FromSwarm, THandler, THandlerOutEvent,
ToSwarm,
dial_opts, ConnectionDenied, ConnectionId, DialError, FromSwarm, ListenFailure, THandler,
THandlerOutEvent, ToSwarm,
};
use libp2p::{
core::{ConnectedPoint, Multiaddr},
Expand Down Expand Up @@ -437,7 +437,7 @@ impl ConnectionPoolBehaviour {
}
}

fn on_listen_failure<'a>(&mut self, event: ListenFailure<'a>) {
fn on_listen_failure(&mut self, event: ListenFailure<'_>) {
log::warn!(
"Error accepting incoming connection from {} to our local address {}: {:?}",
event.send_back_addr,
Expand Down

0 comments on commit d3db4f4

Please sign in to comment.