summaryrefslogtreecommitdiff
path: root/crates/tor-log-ratelim
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-log-ratelim')
-rw-r--r--crates/tor-log-ratelim/Cargo.toml1
-rw-r--r--crates/tor-log-ratelim/src/ratelim.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/tor-log-ratelim/Cargo.toml b/crates/tor-log-ratelim/Cargo.toml
index 95e41e6f3..539190d3c 100644
--- a/crates/tor-log-ratelim/Cargo.toml
+++ b/crates/tor-log-ratelim/Cargo.toml
@@ -25,6 +25,7 @@ tor-error = { path = "../tor-error", version = "0.40.0" }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.40.0" }
tracing = "0.1.36"
weak-table = "0.3.0"
+web-time-compat = { path = "../web-time-compat", version = "0.1.0" }
[dev-dependencies]
diff --git a/crates/tor-log-ratelim/src/ratelim.rs b/crates/tor-log-ratelim/src/ratelim.rs
index 5a05db325..525a88575 100644
--- a/crates/tor-log-ratelim/src/ratelim.rs
+++ b/crates/tor-log-ratelim/src/ratelim.rs
@@ -14,7 +14,7 @@ use tor_rtcompat::SpawnExt as _;
pub(crate) mod rt {
use futures::{future::BoxFuture, task::Spawn};
use std::sync::OnceLock;
- use std::time::{Duration, Instant};
+ use web_time_compat::{Duration, Instant};
/// A dyn-safe view of the parts of an async runtime that we need for rate-limiting.
pub trait RuntimeSupport: Spawn + 'static + Sync + Send {