From c6b0eedebe8fb74e99625a7ed4cc050f30d9fa28 Mon Sep 17 00:00:00 2001 From: nytpu Date: Tue, 23 Mar 2021 08:13:48 -0600 Subject: [PATCH] Use refresh timeout for http --- fetch/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch/http.go b/fetch/http.go index ae5a3bb..db84759 100644 --- a/fetch/http.go +++ b/fetch/http.go @@ -26,7 +26,7 @@ import ( // fetchHTTP will make a request for an http resource func fetchHTTP(remoteURL string) (*http.Response, error) { client := &http.Client{ - Timeout: 10 * time.Second, + Timeout: time.Duration(core.Timeout) * time.Second, } req, err := http.NewRequestWithContext(context.Background(), "GET", remoteURL, nil)