Skip to content

Commit

Permalink
increase api client calling timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
imjaroiswebdev committed Jul 4, 2024
1 parent 57656bc commit 1bbaee6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pagerduty/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c *Config) Client() (*pagerduty.Client, error) {

var httpClient *http.Client
httpClient = http.DefaultClient
httpClient.Timeout = 1 * time.Minute
httpClient.Timeout = 2 * time.Minute

transport := http.DefaultTransport.(*http.Transport).Clone()
if c.InsecureTls {
Expand Down
2 changes: 1 addition & 1 deletion pagerdutyplugin/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (c *Config) Client(ctx context.Context) (*pagerduty.Client, error) {
}

httpClient := http.DefaultClient
httpClient.Timeout = 1 * time.Minute
httpClient.Timeout = 2 * time.Minute

transport := http.DefaultTransport.(*http.Transport).Clone()
if c.InsecureTls {
Expand Down

0 comments on commit 1bbaee6

Please sign in to comment.