resources: Increase timeout for http.Client

Increase timeout for http.Client in resources.GetRemote  from 10 second to 1 minute

Fixes #10478
This commit is contained in:
Anton Sattarov 2022-12-03 17:47:47 +03:00 committed by GitHub
parent d373774cbe
commit a49e51fd0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ func New(rs *resources.Spec) *Client {
return &Client{
rs: rs,
httpClient: &http.Client{
Timeout: 10 * time.Second,
Timeout: time.Minute,
},
cacheGetResource: rs.FileCaches.GetResourceCache(),
}