MCPcopy
hub / github.com/grafana/tempo / backoff

Method backoff

modules/livestore/live_store_background.go:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38func (o *completeOp) Priority() int64 { return -o.at.Unix() }
39
40func (o *completeOp) backoff() time.Duration {
41 current := o.bo
42 o.bo *= 2
43 if o.bo > o.maxBackoff {
44 o.bo = o.maxBackoff
45 }
46
47 return current
48}
49
50func (s *LiveStore) startAllBackgroundProcesses() {
51 if s.cfg.holdAllBackgroundProcesses {

Callers 2

retryCompleteOpMethod · 0.80

Calls

no outgoing calls

Tested by 1