Skip to content

Commit

Permalink
Merge pull request #135 from wbh1/fix/downloadBlobToBuffer
Browse files Browse the repository at this point in the history
add more error checking to downloadBlobToBuffer
  • Loading branch information
zezha-msft authored May 31, 2019
2 parents 9d873e0 + 2155541 commit 2e27a70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azblob/highlevel.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ func downloadBlobToBuffer(ctx context.Context, blobURL BlobURL, offset int64, co
parallelism: o.Parallelism,
operation: func(chunkStart int64, count int64) error {
dr, err := blobURL.Download(ctx, chunkStart+offset, count, o.AccessConditions, false)
if err != nil {
return err
}
body := dr.Body(o.RetryReaderOptionsPerBlock)
if o.Progress != nil {
rangeProgress := int64(0)
Expand Down

0 comments on commit 2e27a70

Please sign in to comment.