Skip to content

Commit 8ba3c02

Browse files
sypharjyn514
authored andcommitted
reduce s3 retries, fix typo in error message
1 parent d95e864 commit 8ba3c02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/storage/s3.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl S3Backend {
3131

3232
let shared_config = runtime.block_on(aws_config::load_from_env());
3333
let mut config_builder = aws_sdk_s3::config::Builder::from(&shared_config)
34-
.retry_config(RetryConfig::new().with_max_attempts(5))
34+
.retry_config(RetryConfig::new().with_max_attempts(3))
3535
.region(Region::new(config.s3_region.clone()));
3636

3737
if let Some(ref endpoint) = config.s3_endpoint {
@@ -233,7 +233,7 @@ impl<'a> StorageTransaction for S3StorageTransaction<'a> {
233233
let to_delete = Delete::builder()
234234
.set_objects(Some(
235235
list.contents
236-
.expect("didn't get context even though but key_count was > 0")
236+
.expect("didn't get content even though key_count was > 0")
237237
.into_iter()
238238
.filter_map(|obj| {
239239
obj.key()

0 commit comments

Comments
 (0)