From db3c349f11595872c65c41946690003e84abe13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Reyes?= Date: Thu, 4 Jul 2024 16:35:14 -0400 Subject: [PATCH] increase api client calling timeout --- pagerduty/config.go | 2 +- pagerdutyplugin/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pagerduty/config.go b/pagerduty/config.go index a508271ee..38a453c11 100644 --- a/pagerduty/config.go +++ b/pagerduty/config.go @@ -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 { diff --git a/pagerdutyplugin/config.go b/pagerdutyplugin/config.go index 9fc588e0d..28b147a31 100644 --- a/pagerdutyplugin/config.go +++ b/pagerdutyplugin/config.go @@ -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 {