Skip to content

Commit

Permalink
fix:doPut error (#2495)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinguoyi authored Aug 21, 2024
1 parent f44a97b commit a559bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/url2im/pkg/manage.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (m *Manage) RunTask(ctx context.Context, task Task) (string, error) {
}
for i, currentPartSize := range part.PartSizes {
md5Reader := NewMd5Reader(io.LimitReader(reader, currentPartSize))
if m.doPut(ctx, m.api.Client, initiateMultipartUploadResp.Upload.Sign, uploadParts[i], md5Reader, currentPartSize); err != nil {
if err := m.doPut(ctx, m.api.Client, initiateMultipartUploadResp.Upload.Sign, uploadParts[i], md5Reader, currentPartSize); err != nil {
return "", err
}
if md5val := md5Reader.Md5(); md5val != part.PartMd5s[i] {
Expand Down

0 comments on commit a559bfe

Please sign in to comment.