Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy warning in throughput_client.rs #1001

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading