From a2218e2f0a0aa033488c3ac8dd162d09dbd2ba01 Mon Sep 17 00:00:00 2001 From: Acha Bill Date: Tue, 9 Jan 2024 15:34:16 +0100 Subject: [PATCH] fix: lint --- pkg/check/erasurecode/erasurecode.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/check/erasurecode/erasurecode.go b/pkg/check/erasurecode/erasurecode.go index 5c65bef0f..0e651eafb 100644 --- a/pkg/check/erasurecode/erasurecode.go +++ b/pkg/check/erasurecode/erasurecode.go @@ -141,9 +141,7 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int func upload(ctx context.Context, logger logging.Logger, clients map[string]*bee.Client, cName string, o Options, rLevel int) (swarm.Address, []byte, error) { for retries := 0; retries < 3; retries++ { - select { - case <-time.After(o.TxOnErrWait): - } + time.Sleep(o.TxOnErrWait) batchID, err := clients[cName].GetOrCreateBatch(ctx, o.PostageAmount, o.PostageDepth, "erasure-code") if err != nil { logger.Warningf("level: %d. create new batch: %v", rLevel, err)