Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Oct 22, 2024
1 parent b60ef66 commit 1a0ea29
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ use crate::{
},
rpc, Config, Enr, Event, IpMode,
};
use connectivity_state::DURATION_UNTIL_NEXT_CONNECTIVITY_ATTEMPT;
use connectivity_state::{ConnectivityState, TimerFailure};
use connectivity_state::{
ConnectivityState, TimerFailure, DURATION_UNTIL_NEXT_CONNECTIVITY_ATTEMPT,
};
use delay_map::HashSetDelay;
use enr::{CombinedKey, NodeId};
use fnv::FnvHashMap;
Expand Down
16 changes: 10 additions & 6 deletions src/service/connectivity_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
//! this time, which prevents our ENR from being updated.

use crate::metrics::METRICS;
use futures::future::{pending, Either};
use futures::FutureExt;
use std::net::SocketAddr;
use std::pin::Pin;
use std::sync::atomic::Ordering;
use std::time::{Duration, Instant};
use futures::{
future::{pending, Either},
FutureExt,
};
use std::{
net::SocketAddr,
pin::Pin,
sync::atomic::Ordering,
time::{Duration, Instant},
};
use tokio::time::{sleep, Sleep};
use tracing::info;

Expand Down

0 comments on commit 1a0ea29

Please sign in to comment.