mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/backup/s3remote: fix typos (#6694)
Fixes a few typos in errors in lib/backup/s3remote package.
This commit is contained in:
parent
e5d279bb71
commit
11c0b05e8a
1 changed files with 2 additions and 2 deletions
|
@ -285,7 +285,7 @@ func (fs *FS) UploadPart(p common.Part, r io.Reader) error {
|
|||
|
||||
_, err := fs.uploader.Upload(context.Background(), input)
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot upoad data to %q at %s (remote path %q): %w", p.Path, fs, path, err)
|
||||
return fmt.Errorf("cannot upload data to %q at %s (remote path %q): %w", p.Path, fs, path, err)
|
||||
}
|
||||
if uint64(sr.size) != p.Size {
|
||||
return fmt.Errorf("wrong data size uploaded to %q at %s; got %d bytes; want %d bytes", p.Path, fs, sr.size, p.Size)
|
||||
|
@ -374,7 +374,7 @@ func (fs *FS) CreateFile(filePath string, data []byte) error {
|
|||
}
|
||||
_, err := fs.uploader.Upload(context.Background(), input)
|
||||
if err != nil {
|
||||
return fmt.Errorf("cannot upoad data to %q at %s (remote path %q): %w", filePath, fs, path, err)
|
||||
return fmt.Errorf("cannot upload data to %q at %s (remote path %q): %w", filePath, fs, path, err)
|
||||
}
|
||||
l := int64(len(data))
|
||||
if sr.size != l {
|
||||
|
|
Loading…
Reference in a new issue