Hardswap Invariants in tests + Quota fixes

This commit is contained in:
Alexey
2026-09-20 00:28:52 +03:00
parent 89dacbd17e
commit d706b3f3ba
66 changed files with 1821 additions and 505 deletions
+6 -1
View File
@@ -21,7 +21,7 @@ use std::sync::Arc;
use std::sync::atomic::{AtomicBool, AtomicU8, AtomicU64, AtomicUsize, Ordering};
use std::time::Instant;
pub(crate) use self::quota_store::{QuotaReservation, QuotaStore};
pub(crate) use self::quota_store::{QuotaReservation, QuotaStore, UserQuotaHandle};
#[allow(unused_imports)]
pub use self::replay::{ReplayChecker, ReplayStats};
use self::telemetry::TelemetryPolicy;
@@ -430,6 +430,11 @@ impl Stats {
*stats.start_time.write() = Some(Instant::now());
stats
}
#[cfg(test)]
pub(crate) fn quota_store(&self) -> Arc<QuotaStore> {
Arc::clone(&self.quota_store)
}
}
#[cfg(test)]