Skip to content

Commit

Permalink
feat: add api caller timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Oct 25, 2023
1 parent fd9b622 commit 068fdfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common/apicall/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type baseApiResponse[T any] struct {
}

var client = &http.Client{
Timeout: time.Second * 20,
Timeout: time.Second * 10,
}

type ApiCaller[Req, Resp any] interface {
Expand Down

0 comments on commit 068fdfb

Please sign in to comment.