Skip to content

Commit a739f52

Browse files
authored
Merge pull request #70 from hazcod/feat/warnings
Fix: longer request timeout for WS1
2 parents 69c745a + c83dc23 commit a739f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ws1/extractor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func doAuthRequest(ctx context.Context, ws1AuthLocation, clientID, secret, url,
4848
oauth2Config := clientcredentials.Config{ClientID: clientID, ClientSecret: secret,
4949
TokenURL: fmt.Sprintf("https://%s.uemauth.vmwservices.com/connect/token", ws1AuthLocation)}
5050
httpClient := oauth2Config.Client(ctx)
51-
httpClient.Timeout = time.Second * 10
51+
httpClient.Timeout = time.Second * 30
5252

5353
req, err := http.NewRequest(method, url, bytes.NewReader(reqPayload))
5454
req = req.WithContext(ctx)

0 commit comments

Comments
 (0)