metrics/influxdb: add a timeout to the InfluxDB HTTP client (#19250)

This commit is contained in:
Daniel Liu 2024-12-13 14:00:11 +08:00
parent 7608787b3c
commit 1557746bcd

View file

@ -63,6 +63,7 @@ func (r *reporter) makeClient() (err error) {
URL: r.url,
Username: r.username,
Password: r.password,
Timeout: 10 * time.Second,
})
return