MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / nextTransientErrorRetryAfter

Function nextTransientErrorRetryAfter

sdk/cliproxy/auth/conductor.go:148–157  ·  view source on GitHub ↗
(now time.Time)

Source from the content-addressed store, hash-verified

146}
147
148func nextTransientErrorRetryAfter(now time.Time) time.Time {
149 seconds := transientErrorCooldownSeconds.Load()
150 if seconds < 0 {
151 return time.Time{}
152 }
153 if seconds == 0 {
154 return now.Add(transientErrorCooldown)
155 }
156 return now.Add(time.Duration(seconds) * time.Second)
157}
158
159// Result captures execution outcome used to adjust auth state.
160type Result struct {

Callers 2

MarkResultMethod · 0.85
applyAuthFailureStateFunction · 0.85

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected