From 6242e3a50272f1f037e71cc10df4e6cb04a88356 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Tue, 3 May 2022 09:56:11 -0300 Subject: [PATCH] fix: increase default timeout 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 --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 1703917..3bbe5dc 100644 --- a/main.go +++ b/main.go @@ -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