summaryrefslogtreecommitdiff
path: root/crates/tor-circmgr/src/mgr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-circmgr/src/mgr.rs')
-rw-r--r--crates/tor-circmgr/src/mgr.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/tor-circmgr/src/mgr.rs b/crates/tor-circmgr/src/mgr.rs
index a8a501491..0e024bf0e 100644
--- a/crates/tor-circmgr/src/mgr.rs
+++ b/crates/tor-circmgr/src/mgr.rs
@@ -47,9 +47,9 @@ use std::fmt::Debug;
use std::hash::Hash;
use std::panic::AssertUnwindSafe;
use std::sync::{self, Arc, Weak};
-use std::time::{Duration, Instant};
use tor_rtcompat::SpawnExt;
use tracing::{debug, instrument, trace, warn};
+use web_time_compat::{Duration, Instant};
mod streams;
/// Alias to force use of RandomState, regardless of features enabled in `weak_tables`.
@@ -1879,6 +1879,7 @@ mod test {
use tor_persist::TestingStateMgr;
use tor_rtcompat::SleepProvider;
use tor_rtmock::MockRuntime;
+ use web_time_compat::InstantExt;
#[allow(deprecated)] // TODO #1885
use tor_rtmock::MockSleepRuntime;
@@ -2432,7 +2433,7 @@ mod test {
let (ep_none, ep_web, ep_full) = get_exit_policies();
let fake_circ = FakeCirc { id: FakeId::next() };
let expiration = ExpirationInfo::Unused {
- created: Instant::now(),
+ created: Instant::get(),
};
let mut entry_none = OpenEntry::new(