Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
someone235 committed Jan 7, 2024
1 parent 4325bc5 commit aed9106
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protocol/p2p/src/core/hub.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::{common::ProtocolError, pb::KaspadMessage, ConnectionInitializer, Peer, Router};
use core::num;
use kaspa_core::{debug, info, warn};
use parking_lot::RwLock;
use std::{
Expand Down Expand Up @@ -111,7 +110,7 @@ impl Hub {
let peers = self.peers.read().values().cloned().collect::<Vec<_>>();
// TODO: At least some of the peers should be outbound, because an attacker can gain less control
// over the set of outbound peers.
for router in peers.choose_multiple(&mut rand::thread_rng(), num_peers).cloned() {
for router in peers.choose_multiple(&mut rand::thread_rng(), num_peers) {
let _ = router.enqueue(msg.clone()).await;
}
}
Expand Down

0 comments on commit aed9106

Please sign in to comment.