Skip to content

Commit

Permalink
RUST-1698 Fix reading gridfs chunks from async-std file stream (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
abr-egn authored Sep 8, 2023
1 parent 5b54bb6 commit b286d1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gridfs/upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ where
n => n,
};
total_bytes_read += bytes_read;
if total_bytes_read == buf.len() {
break;
}
}

Ok(total_bytes_read)
Expand Down

0 comments on commit b286d1c

Please sign in to comment.