Skip to content

Commit

Permalink
bench: revert to always sending full batches
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdroychan committed Jan 13, 2025
1 parent 29170bf commit c9eaa2c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,13 +843,6 @@ fn bench_worker_async(map: Arc<Box<dyn AsyncKVMap>>, context: WorkerContext) {
// otherwise the last check may fail because the time check is after a certain
// interval, but the mod is never 0
*counter += 1;
// if a rate limiter is in place and no further backoff is needed, break early to
// send the batch immediately
if let Some(r) = &rate_limiter {
if r.try_backoff(*counter) {
break;
}
}
}

// now we have a batch, send it all, whatever its size is
Expand Down

0 comments on commit c9eaa2c

Please sign in to comment.