Skip to content

Commit

Permalink
Fix clippy warning in throughput_client.rs (#1001)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Volodkin <vladvolodkin@gmail.com>
  • Loading branch information
vladem authored Sep 6, 2024
1 parent 3c371f3 commit c27abd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mountpoint-s3-client/src/mock_client/throughput_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ impl Stream for ThroughputGetObjectRequest {
let this = self.project();
this.request.poll_next(cx).map(|next| {
next.map(|item| {
item.map(|body_part| {
item.inspect(|body_part| {
// Acquire enough tokens for the number of bytes we want to deliver
block_on(this.rate_limiter.acquire(body_part.1.len() as u32));
body_part
})
})
})
Expand Down

0 comments on commit c27abd2

Please sign in to comment.