Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Jan 9, 2024
1 parent a08a0b6 commit a2218e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/check/erasurecode/erasurecode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2218e2

Please sign in to comment.