Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Mar 22, 2021
1 parent d8e9492 commit f3311f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocols/identify/src/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use libp2p_core::{
Multiaddr,
PeerId,
PublicKey,
connection::ConnectionId,
connection::{ConnectionId, ListenerId},
upgrade::UpgradeError
};
use libp2p_swarm::{
Expand Down Expand Up @@ -233,13 +233,13 @@ impl NetworkBehaviour for Identify {
self.pending_push.remove(peer_id);
}

fn inject_new_listen_addr(&mut self, _addr: &Multiaddr) {
fn inject_new_listen_addr(&mut self, _id: ListenerId, _addr: &Multiaddr) {
if self.config.push_listen_addr_updates {
self.pending_push.extend(self.connected.keys());
}
}

fn inject_expired_listen_addr(&mut self, _addr: &Multiaddr) {
fn inject_expired_listen_addr(&mut self, _id: ListenerId, _addr: &Multiaddr) {
if self.config.push_listen_addr_updates {
self.pending_push.extend(self.connected.keys());
}
Expand Down

0 comments on commit f3311f1

Please sign in to comment.