Skip to content

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Mar 6, 2024
1 parent 08fd971 commit 4361996
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/check/redundancy/redundancy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package redundancy
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"time"
Expand Down Expand Up @@ -110,7 +111,7 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, o interf
}
c.logger.Infof("upload completed. Downloading %s", root.String())
d, err = downloadClient.DownloadBytes(ctx, root, &api.DownloadOptions{RedundancyFallbackMode: &fallbackMode})
if err != nil {
if !errors.Is(err, io.ErrUnexpectedEOF) {
return fmt.Errorf("download bytes: %w", err)
}
if bytes.Equal(data, d) {
Expand Down

0 comments on commit 4361996

Please sign in to comment.