MCPcopy Create free account
hub / github.com/compozy/agh / shouldRetryStatus

Function shouldRetryStatus

internal/registry/github/client.go:646–648  ·  view source on GitHub ↗
(statusCode int)

Source from the content-addressed store, hash-verified

644}
645
646func shouldRetryStatus(statusCode int) bool {
647 return statusCode == http.StatusTooManyRequests || statusCode >= http.StatusInternalServerError
648}
649
650func (c *Client) prepareRetryResponse(response *http.Response, attempt int) {
651 closeErr := closeResponseBody(

Callers 1

doRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected