Skip to content

Commit

Permalink
Increase DefaultHTTPMaxRetry to 10 (#183)
Browse files Browse the repository at this point in the history
* Increase DefaultHTTPMaxRetry to 10

* Update docs
  • Loading branch information
ekampf authored Aug 23, 2022
1 parent b29d6c6 commit b4dbed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ provider "twingate" {
- `api_token` (String, Sensitive) The access key for API operations. You can retrieve this
from the Twingate Admin Console ([documentation](https://docs.twingate.com/docs/api-overview)).
Alternatively, this can be specified using the TWINGATE_API_TOKEN environment variable.
- `http_max_retry` (Number) Specifies a retry limit for the http requests made. This setting is 5.
- `http_max_retry` (Number) Specifies a retry limit for the http requests made. This default value is 10.
Alternatively, this can be specified using the TWINGATE_HTTP_MAX_RETRY environment variable
- `http_timeout` (Number) Specifies a time limit in seconds for the http requests made. The default value is 10 seconds.
Alternatively, this can be specified using the TWINGATE_HTTP_TIMEOUT environment variable
Expand Down
4 changes: 2 additions & 2 deletions twingate/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const (
DefaultHTTPTimeout = "10"
DefaultHTTPMaxRetry = "5"
DefaultHTTPMaxRetry = "10"
)

func Provider(version string) *schema.Provider {
Expand Down Expand Up @@ -80,7 +80,7 @@ func providerOptions() map[string]*schema.Schema {
Type: schema.TypeInt,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("TWINGATE_HTTP_MAX_RETRY", DefaultHTTPMaxRetry),
Description: "Specifies a retry limit for the http requests made. This setting is 5.\n" +
Description: "Specifies a retry limit for the http requests made. This default value is 10.\n" +
"Alternatively, this can be specified using the TWINGATE_HTTP_MAX_RETRY environment variable",
},
}
Expand Down

0 comments on commit b4dbed0

Please sign in to comment.