File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ actix-cors = "0.6"
15
15
actix-files = " 0.6.1"
16
16
anyhow = { version = " 1.0.43" , features = [" backtrace" ] }
17
17
async-trait = " 0.1"
18
- aws-sdk-s3 = " 0.17"
18
+ aws-sdk-s3 = " 0.19"
19
+ aws-smithy-async = { version = " 0.49.0" , features = [" rt-tokio" ] }
19
20
bytes = " 1"
20
21
chrono = " 0.4.19"
21
22
chrono-humanize = " 0.2.2"
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ use aws_sdk_s3::error::{HeadBucketError, HeadBucketErrorKind};
3
3
use aws_sdk_s3:: model:: { CommonPrefix , Delete , ObjectIdentifier } ;
4
4
use aws_sdk_s3:: types:: { ByteStream , SdkError } ;
5
5
use aws_sdk_s3:: Error as AwsSdkError ;
6
+ use aws_sdk_s3:: RetryConfig ;
6
7
use aws_sdk_s3:: { Client , Credentials , Endpoint , Region } ;
8
+ use aws_smithy_async:: rt:: sleep:: default_async_sleep;
7
9
use bytes:: Bytes ;
8
10
use crossterm:: style:: Stylize ;
9
11
use datafusion:: arrow:: datatypes:: Schema ;
@@ -171,6 +173,8 @@ impl S3 {
171
173
. region ( options. region )
172
174
. endpoint_resolver ( options. endpoint )
173
175
. credentials_provider ( options. creds )
176
+ . retry_config ( RetryConfig :: standard ( ) . with_max_attempts ( 5 ) )
177
+ . sleep_impl ( default_async_sleep ( ) . expect ( "sleep impl is provided for tokio rt" ) )
174
178
. build ( ) ;
175
179
176
180
let client = Client :: from_conf ( config) ;
You can’t perform that action at this time.
0 commit comments