Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Nov 19, 2024
1 parent 0fe2fac commit b04c4d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion aws-s3-transfer-manager/src/io/aggregated_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use bytes_utils::SegmentedBuf;

use crate::error::ErrorKind;

///
/// Non-contiguous Binary Data Storage
///
/// When data is read from the network, it is read in a sequence of chunks that are not in
Expand Down
2 changes: 2 additions & 0 deletions aws-s3-transfer-manager/src/operation/download/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ impl DownloadHandle {
self.body.close();

self.discovery.await??;
// It's safe to grab the lock here because discovery is already complete, and we will never
// lock tasks again after discovery to spawn more tasks.
let mut tasks = self.tasks.lock().await;
while let Some(join_result) = tasks.join_next().await {
join_result?;
Expand Down

0 comments on commit b04c4d4

Please sign in to comment.