MCPcopy
hub / github.com/riverqueue/river / timeNowUTC

Method timeNowUTC

retry_policy.go:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func (p *DefaultClientRetryPolicy) timeNowUTC() time.Time {
61 if p.timeNowFunc != nil {
62 return p.timeNowFunc()
63 }
64
65 return time.Now().UTC()
66}
67
68// The maximum value of a duration before it overflows. About 292 years.
69const maxDuration time.Duration = 1<<63 - 1

Callers 1

NextRetryMethod · 0.95

Calls 1

NowMethod · 0.65

Tested by

no test coverage detected