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

Method duration

federationapi/statistics/statistics.go:77–79  ·  view source on GitHub ↗

duration returns how long the next backoff interval should be.

(count uint32)

Source from the content-addressed store, hash-verified

75
76// duration returns how long the next backoff interval should be.
77func (s *ServerStatistics) duration(count uint32) time.Duration {
78 return time.Second * time.Duration(math.Exp2(float64(count)))
79}
80
81// cancel will interrupt the currently active backoff.
82func (s *ServerStatistics) cancel() {

Callers 1

FailureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected