Skip to content

Commit

Permalink
fix find replace error
Browse files Browse the repository at this point in the history
  • Loading branch information
mildwonkey committed Feb 18, 2021
1 parent 00846aa commit 13b6dab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions internal/getproviders/registry_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var (

func init() {
configureDiscoveryRetry()
ConfigureProviderRequestTimeout()
configureRequestTimeout()
}

var SupportedPluginProtocols = MustParseVersionConstraints("~> 5")
Expand Down Expand Up @@ -492,9 +492,9 @@ func maxRetryErrorHandler(resp *http.Response, err error, numTries int) (*http.R
return resp, fmt.Errorf("the request failed, please try again later%s", errMsg)
}

// ConfigureProviderRequestTimeout configures the registry client request timeout from
// configureRequestTimeout configures the registry client request timeout from
// environment variables
func ConfigureProviderRequestTimeout() {
func configureRequestTimeout() {
requestTimeout = defaultRequestTimeout

if v := os.Getenv(registryClientTimeoutEnvName); v != "" {
Expand Down
6 changes: 3 additions & 3 deletions registry/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var (

func init() {
configureDiscoveryRetry()
ConfigureProviderRequestTimeout()
configureRequestTimeout()
}

// Client provides methods to query Terraform Registries.
Expand Down Expand Up @@ -309,9 +309,9 @@ func maxRetryErrorHandler(resp *http.Response, err error, numTries int) (*http.R
return resp, fmt.Errorf("the request failed, please try again later%s", errMsg)
}

// ConfigureProviderRequestTimeout configures the registry client request timeout from
// configureRequestTimeout configures the registry client request timeout from
// environment variables
func ConfigureProviderRequestTimeout() {
func configureRequestTimeout() {
requestTimeout = defaultRequestTimeout

if v := os.Getenv(registryClientTimeoutEnvName); v != "" {
Expand Down

0 comments on commit 13b6dab

Please sign in to comment.