Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Sep 21, 2023
1 parent e60a183 commit 8ba5490
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protocols/upnp/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use igd_next::PortMappingProtocol;
use libp2p_core::{multiaddr, transport::ListenerId, Endpoint, Multiaddr};
use libp2p_swarm::{
derive_prelude::PeerId, dummy, ConnectionDenied, ConnectionId, ExpiredListenAddr, FromSwarm,
NetworkBehaviour, NewListenAddr, PollParameters, ToSwarm,
NetworkBehaviour, NewListenAddr, ToSwarm,
};

/// The duration in seconds of a port mapping on the gateway.
Expand Down Expand Up @@ -370,7 +370,6 @@ impl NetworkBehaviour for Behaviour {
fn poll(
&mut self,
cx: &mut Context<'_>,
_params: &mut impl PollParameters,
) -> Poll<ToSwarm<Self::ToSwarm, libp2p_swarm::THandlerInEvent<Self>>> {
// If there are pending addresses to be emitted we emit them.
if let Some(event) = self.pending_events.pop_front() {
Expand Down

0 comments on commit 8ba5490

Please sign in to comment.