Skip to content

Commit

Permalink
Merge pull request #2261 from b-zee/fix-kad-instant
Browse files Browse the repository at this point in the history
fix(networking): use platform Instant::now
  • Loading branch information
b-zee authored Oct 17, 2024
2 parents 50d28d7 + 5f5cdb7 commit 3249f53
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sn_networking/src/event/kad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// permissions and limitations relating to use of the SAFE Network Software.

use crate::{
cmd::NetworkSwarmCmd, driver::PendingGetClosestType, get_quorum_value, GetRecordCfg,
GetRecordError, NetworkError, Result, SwarmDriver, CLOSE_GROUP_SIZE,
cmd::NetworkSwarmCmd, driver::PendingGetClosestType, get_quorum_value, target_arch::Instant,
GetRecordCfg, GetRecordError, NetworkError, Result, SwarmDriver, CLOSE_GROUP_SIZE,
};
use itertools::Itertools;
use libp2p::{
Expand All @@ -23,10 +23,7 @@ use sn_protocol::{
storage::get_type_from_record,
NetworkAddress, PrettyPrintRecordKey,
};
use std::{
collections::{hash_map::Entry, HashSet},
time::Instant,
};
use std::collections::{hash_map::Entry, HashSet};
use tokio::sync::oneshot;
use xor_name::XorName;

Expand Down

0 comments on commit 3249f53

Please sign in to comment.