Reset the Backoff back to its initial condition
()
| 43 | |
| 44 | // Reset the Backoff back to its initial condition |
| 45 | func (b *Backoff) Reset() { |
| 46 | b.numRetries = 0 |
| 47 | b.nextDelayMin = b.cfg.MinBackoff |
| 48 | b.nextDelayMax = doubleDuration(b.cfg.MinBackoff, b.cfg.MaxBackoff) |
| 49 | } |
| 50 | |
| 51 | // Ongoing returns true if caller should keep going |
| 52 | func (b *Backoff) Ongoing() bool { |
nothing calls this directly
no test coverage detected