use CountToEnd to read entire blob

This commit is contained in:
Robert Lippens 2019-08-14 09:57:42 -07:00
parent e35d63203a
commit 35b2e16c5c
No known key found for this signature in database
GPG key ID: 9984DABBD3F82E8F

View file

@ -39,7 +39,7 @@ func (az *azureBlobStore) Find(ctx context.Context, step int64) (io.ReadCloser,
return nil, err return nil, err
} }
blobURL := az.containerURL.NewBlockBlobURL(fmt.Sprintf("%d", step)) blobURL := az.containerURL.NewBlockBlobURL(fmt.Sprintf("%d", step))
out, err := blobURL.Download(ctx, 0, 100, azblob.BlobAccessConditions{}, false) out, err := blobURL.Download(ctx, 0, azblob.CountToEnd, azblob.BlobAccessConditions{}, false)
if err != nil { if err != nil {
return nil, err return nil, err
} }