Skip to content

Commit

Permalink
Updated request timeout to 60 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
4gust committed Nov 29, 2024
1 parent d52e165 commit 8c5b978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/managedidentity/managedidentity.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func (c Client) retry(maxRetries int, req *http.Request) (*http.Response, error)
var resp *http.Response
var err error
for attempt := 0; attempt < maxRetries; attempt++ {
tryCtx, tryCancel := context.WithTimeout(req.Context(), time.Second*15)
tryCtx, tryCancel := context.WithTimeout(req.Context(), time.Second*60)
if resp != nil && resp.Body != nil {
_, _ = io.Copy(io.Discard, resp.Body)
resp.Body.Close()
Expand Down

0 comments on commit 8c5b978

Please sign in to comment.