Skip to content

Commit

Permalink
update crypto sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoliang committed May 14, 2021
1 parent 6ddd327 commit d7608ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/crypto/crypto_sample.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func multi_put_object_from_file() {
ContentLength: chunk.Size,
}
fd.Seek(chunk.OffSet, os.SEEK_SET)
resp, err := client.Object.UploadPart(context.Background(), name, v.UploadID, chunk.Number, io.LimitReader(fd, chunk.Size), opt, &cryptoCtx)
resp, err := client.Object.UploadPart(context.Background(), name, v.UploadID, chunk.Number, cos.LimitReadCloser(fd, chunk.Size), opt, &cryptoCtx)
log_status(err)
optcom.Parts = append(optcom.Parts, cos.Object{
PartNumber: chunk.Number, ETag: resp.Header.Get("ETag"),
Expand Down

0 comments on commit d7608ad

Please sign in to comment.