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

Method Ongoing

backoff/backoff.go:52–55  ·  view source on GitHub ↗

Ongoing returns true if caller should keep going

()

Source from the content-addressed store, hash-verified

50
51// Ongoing returns true if caller should keep going
52func (b *Backoff) Ongoing() bool {
53 // Stop if Context has errored or max retry count is exceeded
54 return b.ctx.Err() == nil && (b.cfg.MaxRetries == 0 || b.numRetries < b.cfg.MaxRetries)
55}
56
57// Err returns the reason for terminating the backoff, or nil if it didn't terminate.
58func (b *Backoff) Err() error {

Callers 12

WaitMethod · 0.95
waitBeforeJoiningMethod · 0.80
WaitInstanceStateFunction · 0.80
WatchKeyMethod · 0.80
WatchPrefixMethod · 0.80
WatchKeyMethod · 0.80
WatchPrefixMethod · 0.80
watchBeaconsMethod · 0.80
newBackoffRetryFunction · 0.80
NewRateLimitRetrierFunction · 0.80

Calls 1

ErrMethod · 0.45

Tested by 1

newBackoffRetryFunction · 0.64