Skip to content

Commit 3042e4c

Browse files
committed
updates
1 parent 1531215 commit 3042e4c

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

Diff for: src/storage/azure_blob.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,9 @@ impl BlobStore {
427427

428428
// upload_parts.push(part_number as u64 + 1);
429429
}
430-
match async_writer.complete().await {
431-
Ok(_) => {}
432-
Err(err) => {
433-
error!("Failed to complete multipart upload. {:?}", err);
434-
async_writer.abort().await?;
435-
}
430+
if let Err(err) = async_writer.complete().await {
431+
error!("Failed to complete multipart upload. {:?}", err);
432+
async_writer.abort().await?;
436433
};
437434
}
438435
Ok(())

Diff for: src/storage/s3.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,9 @@ impl S3 {
558558

559559
// upload_parts.push(part_number as u64 + 1);
560560
}
561-
match async_writer.complete().await {
562-
Ok(_) => {}
563-
Err(err) => {
564-
error!("Failed to complete multipart upload. {:?}", err);
565-
async_writer.abort().await?;
566-
}
561+
if let Err(err) = async_writer.complete().await {
562+
error!("Failed to complete multipart upload. {:?}", err);
563+
async_writer.abort().await?;
567564
};
568565
}
569566
Ok(())

0 commit comments

Comments
 (0)