Skip to content

Commit

Permalink
Merge pull request #171 from Tibz-Dankan/switch/sqlite
Browse files Browse the repository at this point in the history
refactor: increase the timeout duration to 4 minutes
  • Loading branch information
Tibz-Dankan authored Sep 10, 2024
2 parents c9d8424 + 82b7e28 commit a8f867a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/httpRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func MakeHTTPRequest(URL string) (Response, error) {

req.Header.Set("Content-Type", "application/json")
defaultClient := http.DefaultClient
defaultClient.Timeout = time.Second * 30
defaultClient.Timeout = time.Minute * 4
res, err := defaultClient.Do(req)

duration := time.Since(startTime)
Expand Down

0 comments on commit a8f867a

Please sign in to comment.