Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Aishwarya-Lad committed Mar 7, 2024
1 parent ec20187 commit 2d7ca1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cache/rebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (r rebuilder) rebuild(src, dst string) (err error) {
tr := io.TeeReader(pr, sw)

if err := r.s.Put(dst, tr); err != nil {
err = fmt.Errorf("failure in uploading file to archived directory, %w", err)
err = fmt.Errorf("failed to upload file to cache storage, %w", err)
if err := pr.CloseWithError(err); err != nil {
level.Error(r.logger).Log("msg", "pr close", "err", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cache/restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (r restorer) restore(src, dst string) (err error) {

written, err := r.a.Extract(dst, pr)
if err != nil {
err = fmt.Errorf("failure in extracting files from downloaded archive, %w", err)
err = fmt.Errorf("failed to extract files from downloaded archive, %w", err)
if err := pr.CloseWithError(err); err != nil {
level.Error(r.logger).Log("msg", "pr close", "err", err)
}
Expand Down

0 comments on commit 2d7ca1f

Please sign in to comment.