Skip to content

Commit

Permalink
:p: Increase request timeout to 3 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnjack committed Nov 20, 2023
1 parent dd0288c commit fec9cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func getTag(obj interface{}, fieldName string, tagType string) string {
// it doesn't support pagination
func makeSimpleAPIRequest(method string, url string, payload io.Reader, expectedStatusCode int) (respBody []byte, err error) {
client := &http.Client{
Timeout: 60 * time.Second,
Timeout: 3 * time.Minute,
}
req, err := http.NewRequest(method, url, payload)

Expand Down

0 comments on commit fec9cea

Please sign in to comment.