Skip to content

Commit 08e1eb0

Browse files
committed
fix: store method
1 parent 79b242d commit 08e1eb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/rate_limiter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl TakoPlugin for RateLimiterPlugin {
349349
loop {
350350
compio::time::sleep(interval).await;
351351
let now = Instant::now();
352-
store.retain(|_, b| {
352+
store.retain_sync(|_, b| {
353353
b.available = (b.available + requests_to_add).min(cfg.max_requests as f64);
354354
now.duration_since(b.last_seen) < purge_after
355355
});

0 commit comments

Comments
 (0)