Skip to content

Commit

Permalink
Default batch size of 100
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed Apr 30, 2024
1 parent 65d34f1 commit f7b4b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion limitador/src/storage/redis/redis_cached.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ async fn flush_batcher_and_update_counters<C: ConnectionLike>(
} else {
let updated_counters = cached_counters
.batcher()
.consume(1, |counters| update_counters(&mut redis_conn, counters))
.consume(100, |counters| update_counters(&mut redis_conn, counters))
.await
.or_else(|err| {
if err.is_transient() {
Expand Down

0 comments on commit f7b4b99

Please sign in to comment.