From 5fd900ee1a173c062df9bfbac32ae22f232c1209 Mon Sep 17 00:00:00 2001 From: Johanna Larsson Date: Fri, 25 Sep 2026 17:23:47 +0100 Subject: [PATCH] build: switch governor to system time We can make this test only by adding a feature for it and checking, but it didn't seem immediately worth it to me. Ping me if you want me to change it. Shaves about 15-20% off of a j2 test run, because we spent about 200ms on every one of the 500 tests against the server just initializing the governor clock. --- Cargo.lock | 1 - Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 64349c9..f5f48e1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2816,7 +2816,6 @@ dependencies = [ "nonzero_ext", "parking_lot", "portable-atomic", - "quanta", "rand 0.9.2", "smallvec", "spinning_top", diff --git a/Cargo.toml b/Cargo.toml index 1e4b9fb..2ffe290 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -81,7 +81,7 @@ ed25519-dalek = { version = "2.1", features = ["pkcs8"] } foca = { version = "1", features = ["bincode-codec", "tracing"] } futures = "0.3" futures-util = "0.3" -governor = "0.10" +governor = { version = "0.10", default-features = false, features = ["std", "dashmap", "jitter"] } h3 = "0.0.8" h3-quinn = "0.0.10" hex = "0.4"