Skip to content

Commit

Permalink
fix: increase default timeout
Browse files Browse the repository at this point in the history
this should account for slow client internet connections and intermitent issues within gumroads api.

its likely better to wait more time by default, and the user might still change it to a lower value later, if that makes sense for them.

Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed May 3, 2022
1 parent fa1c78e commit 6242e3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ func NewProduct(product string) (Product, error) {
API: "https://api.gumroad.com/v2/licenses/verify",
Product: product,
Client: &http.Client{
// 5 seconds should be plenty for GumRoad to respond
Timeout: 5 * time.Second,
Timeout: time.Minute,
Transport: transport,
},
}, nil
Expand Down

0 comments on commit 6242e3a

Please sign in to comment.