mirror of
https://github.com/telemt/telemt.git
synced 2026-10-07 09:55:57 +03:00
Hardswap Invariants in tests + Quota fixes
This commit is contained in:
+6
-1
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user