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 GitHub
parent 93c3be2530
commit f80ac120f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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