quota: restore the observe_at signature the doc rewrite swallowed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
65665225bf
commit
9144fc7019
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ impl QuotaCell {
|
|||
/// held one is dropped, so a slow call cannot replace what a faster one
|
||||
/// saw meanwhile. Windows the readings did not mention stay as they were,
|
||||
/// stamp included.
|
||||
(&self, at: u64, windows: impl IntoIterator<Item = PlanQuota>) {
|
||||
pub fn observe_at(&self, at: u64, windows: impl IntoIterator<Item = PlanQuota>) {
|
||||
let mut held = self.0.lock().unwrap_or_else(|e| e.into_inner());
|
||||
for mut quota in windows {
|
||||
quota.observed_at_unix_ms = at;
|
||||
|
|
|
|||
Loading…
Reference in a new issue