mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
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:
parent
93c3be2530
commit
f80ac120f3
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue