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

Method handleRequestError

internal/registry/github/client.go:632–637  ·  view source on GitHub ↗
(ctx context.Context, err error)

Source from the content-addressed store, hash-verified

630}
631
632func (c *Client) handleRequestError(ctx context.Context, err error) (error, error) {
633 if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) || ctx.Err() != nil {
634 return nil, fmt.Errorf("github: request failed: %w", err)
635 }
636 return fmt.Errorf("github: request failed: %w", err), nil
637}
638
639func (c *Client) waitForRetry(ctx context.Context, backoff time.Duration) (time.Duration, error) {
640 if err := c.sleep(ctx, backoff); err != nil {

Callers 1

doRequestMethod · 0.95

Calls 2

IsMethod · 0.45
ErrMethod · 0.45

Tested by

no test coverage detected