MCPcopy
hub / github.com/grafana/dskit / Reset

Method Reset

backoff/backoff.go:45–49  ·  view source on GitHub ↗

Reset the Backoff back to its initial condition

()

Source from the content-addressed store, hash-verified

43
44// Reset the Backoff back to its initial condition
45func (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
52func (b *Backoff) Ongoing() bool {

Callers

nothing calls this directly

Calls 1

doubleDurationFunction · 0.85

Tested by

no test coverage detected