From 43619968381efdeac36648c99ce64a58113bb440 Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Thu, 7 Mar 2024 00:16:06 +0100 Subject: [PATCH] fix: wip --- pkg/check/redundancy/redundancy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/check/redundancy/redundancy.go b/pkg/check/redundancy/redundancy.go index 9778b346c..94b88270c 100644 --- a/pkg/check/redundancy/redundancy.go +++ b/pkg/check/redundancy/redundancy.go @@ -3,6 +3,7 @@ package redundancy import ( "bytes" "context" + "errors" "fmt" "io" "time" @@ -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) {