From 2c9f0d3be60b62a112121c19095a2fc281615dfa Mon Sep 17 00:00:00 2001 From: Max Inden Date: Mon, 23 Aug 2021 14:53:42 +0200 Subject: [PATCH] protocols/: Remove unused imports --- protocols/floodsub/src/layer.rs | 2 +- protocols/ping/src/lib.rs | 1 - protocols/request-response/src/throttled.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/protocols/floodsub/src/layer.rs b/protocols/floodsub/src/layer.rs index 20101eb64e9..25b235e3364 100644 --- a/protocols/floodsub/src/layer.rs +++ b/protocols/floodsub/src/layer.rs @@ -29,7 +29,7 @@ use fnv::FnvHashSet; use libp2p_core::{connection::ConnectionId, PeerId}; use libp2p_swarm::{ DialPeerCondition, NetworkBehaviour, NetworkBehaviourAction, NotifyHandler, OneShotHandler, - PollParameters, ProtocolsHandler, + PollParameters, }; use log::warn; use smallvec::SmallVec; diff --git a/protocols/ping/src/lib.rs b/protocols/ping/src/lib.rs index 476ca5d7b01..70345dd0472 100644 --- a/protocols/ping/src/lib.rs +++ b/protocols/ping/src/lib.rs @@ -49,7 +49,6 @@ pub use handler::{PingConfig, PingFailure, PingResult, PingSuccess}; use libp2p_core::{connection::ConnectionId, PeerId}; use libp2p_swarm::{NetworkBehaviour, NetworkBehaviourAction, PollParameters}; use std::{collections::VecDeque, task::Context, task::Poll}; -use void::Void; /// `Ping` is a [`NetworkBehaviour`] that responds to inbound pings and /// periodically sends outbound pings on every established connection. diff --git a/protocols/request-response/src/throttled.rs b/protocols/request-response/src/throttled.rs index 72b26d50cf7..61a43c4412e 100644 --- a/protocols/request-response/src/throttled.rs +++ b/protocols/request-response/src/throttled.rs @@ -40,7 +40,7 @@ use super::{ ProtocolSupport, RequestId, RequestResponse, RequestResponseCodec, RequestResponseConfig, RequestResponseEvent, RequestResponseMessage, }; -use crate::handler::{RequestProtocol, RequestResponseHandler, RequestResponseHandlerEvent}; +use crate::handler::{RequestResponseHandler, RequestResponseHandlerEvent}; use codec::{Codec, Message, ProtocolWrapper, Type}; use futures::ready; use libp2p_core::{connection::ConnectionId, ConnectedPoint, Multiaddr, PeerId};