Skip to content

Commit

Permalink
upload time out
Browse files Browse the repository at this point in the history
  • Loading branch information
dasuma committed Apr 14, 2021
1 parent dc15ade commit c1ecdbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var errorCode = []int{
func HTTPRequest(method string, url string, body interface{}, result interface{}, headers map[string]string) (interface{}, error) {
req, _ := getReq(method, url, body)
req = setHeaders(req, headers)
client := &http.Client{Timeout: 3 * time.Second}
client := &http.Client{Timeout: time.Duration(1) * time.Minute}
resp, err := client.Do(req)
if resp != nil {
if ContainsInt(errorCode, resp.StatusCode) {
Expand Down

0 comments on commit c1ecdbf

Please sign in to comment.