diff options
Diffstat (limited to 'workhorse/internal/upload/destination/objectstore/uploader.go')
-rw-r--r-- | workhorse/internal/upload/destination/objectstore/uploader.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/internal/upload/destination/objectstore/uploader.go b/workhorse/internal/upload/destination/objectstore/uploader.go index aedfbe55ead..43e573872ee 100644 --- a/workhorse/internal/upload/destination/objectstore/uploader.go +++ b/workhorse/internal/upload/destination/objectstore/uploader.go @@ -80,13 +80,13 @@ func (u *uploader) Consume(outerCtx context.Context, reader io.Reader, deadline cr := &countReader{r: reader} if err := u.strategy.Upload(uploadCtx, cr); err != nil { - return cr.n, err + return 0, err } if u.checkETag { if err := compareMD5(hexString(hasher), u.strategy.ETag()); err != nil { log.ContextLogger(uploadCtx).WithError(err).Error("error comparing MD5 checksum") - return cr.n, err + return 0, err } } |