Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dknopik committed Feb 18, 2025
1 parent 4c494c0 commit ccd7c99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion anchor/network/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ async fn build_anchor_behaviour(

let discovery = {
// Build and start the discovery sub-behaviour
let mut discovery = Discovery::new(local_keypair.clone(), network_config).await.unwrap();
let mut discovery = Discovery::new(local_keypair.clone(), network_config)
.await
.unwrap();
// start searching for peers
discovery.discover_peers(FIND_NODE_QUERY_CLOSEST_PEERS);
discovery
Expand Down
4 changes: 2 additions & 2 deletions anchor/network/src/peer_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ use libp2p::swarm::{
use libp2p::{connection_limits, peer_store};
use lighthouse_network::EnrExt;
use ssz::Decode;
use ssz_types::length::Fixed;
use ssz_types::typenum::U128;
use ssz_types::Bitfield;
use std::collections::HashSet;
use std::task::{Context, Poll};
use ssz_types::Bitfield;
use ssz_types::length::Fixed;
use subnet_tracker::SubnetId;
use tracing::debug;

Expand Down

0 comments on commit ccd7c99

Please sign in to comment.