We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 412d7ec commit f277c8cCopy full SHA for f277c8c
cli/config.go
@@ -12,6 +12,7 @@ import (
12
13
const (
14
apiKeyEnvironmentVariable = "CODEMAKER_API_KEY"
15
+ defaultMaxRetries = 10
16
)
17
18
func createConfig() (*client.Config, error) {
@@ -35,7 +36,10 @@ func createConfig() (*client.Config, error) {
35
36
return nil, fmt.Errorf("failed to resolve CODEMAKER_API_KEY")
37
}
38
39
+ maxRetries := defaultMaxRetries
40
+
41
return &client.Config{
- ApiKey: apiKey,
42
+ ApiKey: apiKey,
43
+ MaxRetries: &maxRetries,
44
}, nil
45
0 commit comments