From 2e9f1f167de72a0c2f2fe96868449d86675e4237 Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Khan Date: Mon, 14 Oct 2024 11:03:52 -0700 Subject: [PATCH] await permit --- aws-s3-transfer-manager/src/operation/upload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-s3-transfer-manager/src/operation/upload.rs b/aws-s3-transfer-manager/src/operation/upload.rs index 3765cc3..4e675b6 100644 --- a/aws-s3-transfer-manager/src/operation/upload.rs +++ b/aws-s3-transfer-manager/src/operation/upload.rs @@ -84,7 +84,7 @@ async fn put_object( ) -> Result { // 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()