MCPcopy Index your code
hub / github.com/cli/cli / shouldRetry

Function shouldRetry

pkg/cmd/release/shared/upload.go:133–140  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

131}
132
133func shouldRetry(err error) bool {
134 var networkError errNetwork
135 if errors.As(err, &networkError) {
136 return true
137 }
138 var httpError api.HTTPError
139 return errors.As(err, &httpError) && httpError.StatusCode >= 500
140}
141
142// Allow injecting backoff interval in tests.
143var retryInterval = time.Millisecond * 200

Callers 1

uploadWithDeleteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected