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 4361996 commit 9273dd6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/check/redundancy/redundancy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package redundancy
import (
"bytes"
"context"
"errors"
"fmt"
"io"
"time"
Expand Down Expand Up @@ -110,10 +109,7 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, o interf
return fmt.Errorf("upload chunks: %w", err)
}
c.logger.Infof("upload completed. Downloading %s", root.String())
d, err = downloadClient.DownloadBytes(ctx, root, &api.DownloadOptions{RedundancyFallbackMode: &fallbackMode})
if !errors.Is(err, io.ErrUnexpectedEOF) {
return fmt.Errorf("download bytes: %w", err)
}
d, _ = downloadClient.DownloadBytes(ctx, root, &api.DownloadOptions{RedundancyFallbackMode: &fallbackMode})
if bytes.Equal(data, d) {
return fmt.Errorf("download and initial content should not match")
}
Expand Down

0 comments on commit 9273dd6

Please sign in to comment.