diff options
| author | nytpu <alex@nytpu.com> | 2021-03-23 08:13:48 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-03-23 08:15:36 -0600 |
| commit | c6b0eedebe8fb74e99625a7ed4cc050f30d9fa28 (patch) | |
| tree | 7bfea428f7385c4c90991b8d581230fd209684c9 /fetch/http.go | |
| parent | 54e883a1d1adf20f7f36e7f6f8db0f4a000a63fa (diff) | |
Use refresh timeout for http
Diffstat (limited to 'fetch/http.go')
| -rw-r--r-- | fetch/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
