From 4e751126b96c62189b0c6df694d8ebcf660302bf Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Khan Date: Wed, 2 Oct 2024 09:47:33 -0700 Subject: [PATCH] fmt --- aws-s3-transfer-manager/src/middleware/hedge.rs | 2 +- aws-s3-transfer-manager/src/operation/upload/service.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aws-s3-transfer-manager/src/middleware/hedge.rs b/aws-s3-transfer-manager/src/middleware/hedge.rs index eba4e35..23f5643 100644 --- a/aws-s3-transfer-manager/src/middleware/hedge.rs +++ b/aws-s3-transfer-manager/src/middleware/hedge.rs @@ -26,7 +26,7 @@ const MIN_DATA_POINTS: u64 = 20; /// The Hedge layer maintains two rotating histograms, i.e., ReadHistogram and WriteHistogram. They /// are switched every period. This value was chosen randomly while taking into consideration that most 8-16 MB part /// requests take on average 0.2 seconds, and we should retry it if it takes more than a second. -const PERIOD: Duration = Duration::new(2,0); +const PERIOD: Duration = Duration::new(2, 0); pub(crate) struct Builder

{ policy: P, diff --git a/aws-s3-transfer-manager/src/operation/upload/service.rs b/aws-s3-transfer-manager/src/operation/upload/service.rs index 5f75821..70d45de 100644 --- a/aws-s3-transfer-manager/src/operation/upload/service.rs +++ b/aws-s3-transfer-manager/src/operation/upload/service.rs @@ -1,3 +1,5 @@ +use std::sync::Arc; + use crate::{ error, io::{ @@ -9,7 +11,6 @@ use crate::{ }; use aws_sdk_s3::{primitives::ByteStream, types::CompletedPart}; use bytes::Buf; -use std::sync::Arc; use tokio::{sync::Mutex, task}; use tower::{service_fn, Service, ServiceBuilder, ServiceExt}; use tracing::Instrument;