quota: asking_at is crate-visible for the meter's tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-03 12:45:55 +01:00
commit c298d9d07d

View file

@ -67,7 +67,7 @@ impl QuotaCell {
self.asking_at(unix_ms())
}
fn asking_at(self: &Arc<Self>, now: u64) -> Asking {
pub(crate) fn asking_at(self: &Arc<Self>, now: u64) -> Asking {
{
let mut asks = self.asks.lock().unwrap_or_else(|e| e.into_inner());
asks.live += 1;