From 9273dd69324626c44d4c023a54e21fe7969a6d89 Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Thu, 7 Mar 2024 00:34:48 +0100 Subject: [PATCH] fix: wip --- pkg/check/redundancy/redundancy.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/check/redundancy/redundancy.go b/pkg/check/redundancy/redundancy.go index 94b88270c..6304cf9d8 100644 --- a/pkg/check/redundancy/redundancy.go +++ b/pkg/check/redundancy/redundancy.go @@ -3,7 +3,6 @@ package redundancy import ( "bytes" "context" - "errors" "fmt" "io" "time" @@ -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") }