Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed Apr 30, 2024
1 parent fe998ee commit 608f07a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion limitador/src/storage/redis/counters_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,10 @@ impl Batcher {
}
let result = consumer(result).await;
batch.iter().for_each(|counter| {
if let Some(_) = self
if self
.updates
.remove_if(counter, |_, v| v.no_pending_writes())
.is_some()
{
self.limiter.add_permits(1);
}
Expand Down

0 comments on commit 608f07a

Please sign in to comment.