Codebase list golang-github-vbauerster-mpb / dcf83c0
suppressBar: SetRefill after i-- Vladimir Bauer 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3434 for i := 0; i < total; i++ {
3535 if err.check(barID) {
3636 msgCh <- fmt.Sprintf("%s at %d, retrying...", err.Error(), i)
37 bar.SetRefill(int64(i))
3837 err.reset()
3938 i--
39 bar.SetRefill(int64(i))
4040 continue
4141 }
4242 time.Sleep(time.Duration(rand.Intn(10)+1) * max / 10)