Cleanup backup/backup_s3.go
This commit is contained in:
parent
bc3d92f9e6
commit
b52c3fb61e
|
@ -124,8 +124,7 @@ func (s *S3Backup) generateRemoteRequest(rc io.ReadCloser) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attempt to upload the part.
|
// Attempt to upload the part.
|
||||||
_, err := handlePart(part, partSize)
|
if _, err := handlePart(part, partSize); err != nil {
|
||||||
if err != nil {
|
|
||||||
l.WithField("part_id", part).WithError(err).Warn("failed to upload part")
|
l.WithField("part_id", part).WithError(err).Warn("failed to upload part")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user