Skip to content

Commit

Permalink
Update aws-s3-transfer-manager/src/operation/download/service.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Graeb <[email protected]>
  • Loading branch information
waahm7 and graebm authored Dec 6, 2024
1 parent f0e7d2b commit aba4be5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aws-s3-transfer-manager/src/operation/download/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ pub(super) fn distribute_work(

let task = async move {
let resp = svc.oneshot(req).await;
// If any chunk fails, send cancel notification, to kill any other in-flight chunks
if let Err(err) = &resp {
if *err.kind() != ErrorKind::OperationCancelled && cancel_tx.send(true).is_err() {
tracing::debug!(
Expand Down

0 comments on commit aba4be5

Please sign in to comment.