Skip to content

Commit

Permalink
Increased the timeout for go-pivnet client and downoader.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnosal committed Feb 26, 2021
1 parent d6c0ae6 commit ff4ba3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pivnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func NewClient(
baseURL := fmt.Sprintf("%s%s", config.Host, apiVersion)

httpClient := &http.Client{
Timeout: 60 * time.Second,
Timeout: 10 * time.Minute,
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: config.SkipSSLValidation,
Expand All @@ -146,7 +146,7 @@ func NewClient(
HTTPClient: downloadClient,
Ranger: ranger,
Logger: logger,
Timeout: 5 * time.Second,
Timeout: 30 * time.Second,
}

client := Client{
Expand Down

0 comments on commit ff4ba3d

Please sign in to comment.