Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Oct 6, 2022
1 parent d635fa9 commit f7b2221
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions protocols/ping/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ use futures::future::BoxFuture;
use futures::prelude::*;
use futures_timer::Delay;
use libp2p_core::upgrade::ReadyUpgrade;
use libp2p_core::{Multiaddr, upgrade::NegotiationError, UpgradeError};
use libp2p_swarm::{ConnectionHandler, ConnectionHandlerEvent, ConnectionHandlerSelect, ConnectionHandlerUpgrErr, KeepAlive, NegotiatedSubstream, SubstreamProtocol};
use libp2p_core::{upgrade::NegotiationError, Multiaddr, UpgradeError};
use libp2p_swarm::handler::{InboundUpgradeSend, MapInEvent, MapOutEvent};
use libp2p_swarm::{
ConnectionHandler, ConnectionHandlerEvent, ConnectionHandlerSelect, ConnectionHandlerUpgrErr,
KeepAlive, NegotiatedSubstream, SubstreamProtocol,
};
use std::collections::VecDeque;
use std::{
error::Error,
Expand All @@ -34,7 +38,6 @@ use std::{
time::Duration,
};
use void::Void;
use libp2p_swarm::handler::{InboundUpgradeSend, MapInEvent, MapOutEvent};

/// The configuration for outbound pings.
#[derive(Debug, Clone)]
Expand Down

0 comments on commit f7b2221

Please sign in to comment.