src/exporter: clippy & fmt

This commit is contained in:
Max Inden 2020-04-15 22:12:48 +02:00
parent a73d57ef96
commit 1859939312
No known key found for this signature in database
GPG Key ID: 5403C5464810BC26
2 changed files with 4 additions and 4 deletions

View File

@ -316,7 +316,7 @@ impl Future for Exporter {
}
// Trigger a random lookup for each client.
for (_, client) in &mut this.clients {
for client in &mut this.clients.values() {
let random_peer = PeerId::random();
client.get_closest_peers(random_peer.clone());
this.in_flight_lookups.insert(random_peer, Instant::now());

View File

@ -1,9 +1,9 @@
use futures::prelude::*;
use libp2p::{
core::{
connection::ConnectionLimit,
self, either::EitherError, either::EitherOutput, multiaddr::Protocol,
muxing::StreamMuxerBox, transport::boxed::Boxed, transport::Transport, upgrade, Multiaddr,
self, connection::ConnectionLimit, either::EitherError, either::EitherOutput,
multiaddr::Protocol, muxing::StreamMuxerBox, transport::boxed::Boxed, transport::Transport,
upgrade, Multiaddr,
},
dns,
identify::{Identify, IdentifyEvent},