MCPcopy Create free account
hub / github.com/conforma/cli / SetRetryConfig

Function SetRetryConfig

internal/http/retry.go:52–62  ·  view source on GitHub ↗

SetRetryConfig updates the retry configuration

(config RetryConfig)

Source from the content-addressed store, hash-verified

50
51// SetRetryConfig updates the retry configuration
52func SetRetryConfig(config RetryConfig) {
53 DefaultRetry = Retry{
54 MaxWait: config.MaxWait,
55 MaxRetry: config.MaxRetry,
56 }
57 DefaultBackoff = Backoff{
58 Duration: config.Duration,
59 Factor: config.Factor,
60 Jitter: config.Jitter,
61 }
62}
63
64type Retry struct {
65 MaxWait time.Duration

Callers 3

NewRootCmdFunction · 0.92
TestRetryConfigFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestRetryConfigFunction · 0.68