Skip to content

Commit

Permalink
await permit
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Oct 14, 2024
1 parent c34fc55 commit 2e9f1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws-s3-transfer-manager/src/operation/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async fn put_object(
) -> Result<UploadOutput, error::Error> {
// FIXME - This affects performance in cases with a lot of small files workloads. We need a way to schedule
// more work for a lot of small files.
let _permit = ctx.handle.scheduler.acquire_permit().await.unwrap();
let _permit = ctx.handle.scheduler.acquire_permit().await?;
let resp = ctx
.client()
.put_object()
Expand Down

0 comments on commit 2e9f1f1

Please sign in to comment.