MCPcopy Create free account
hub / github.com/daodst/chat / cancel

Method cancel

federationapi/statistics/statistics.go:82–89  ·  view source on GitHub ↗

cancel will interrupt the currently active backoff.

()

Source from the content-addressed store, hash-verified

80
81// cancel will interrupt the currently active backoff.
82func (s *ServerStatistics) cancel() {
83 s.blacklisted.Store(false)
84 s.backoffUntil.Store(time.Time{})
85 select {
86 case s.interrupt <- struct{}{}:
87 default:
88 }
89}
90
91// Success updates the server statistics with a new successful
92// attempt, which increases the sent counter and resets the idle and

Callers 2

SuccessMethod · 0.95
TestBackoffFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestBackoffFunction · 0.76