lib/promscrape/config: fix missing timeout for http client (#6063)

Follow-up for b3b29ba6

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
This commit is contained in:
Zakhar Bessarab 2024-04-03 20:18:48 +04:00 committed by Aliaksandr Valialkin
parent 7526f1d3a5
commit 80315e07b1
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -90,6 +90,7 @@ func newClient(ctx context.Context, sw *ScrapeWork) (*client, error) {
hc := &http.Client{
Transport: rt,
Timeout: sw.ScrapeTimeout,
}
if sw.DenyRedirects {