Skip to content

Commit

Permalink
Merge pull request #900 from imjaroiswebdev/issue-899-api-call-timeout
Browse files Browse the repository at this point in the history
Address: API calls cancelled by client because of Timeout
  • Loading branch information
imjaroiswebdev authored Jul 4, 2024
2 parents 955eef9 + db3c349 commit 71cdac5
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 71cdac5

Please sign in to comment.