mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
app/vmagent: fix comment typo after 992a1c0a3a
Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit 757ae4275b
)
This commit is contained in:
parent
b9a2512ac3
commit
33bf28e1bd
1 changed files with 2 additions and 2 deletions
|
@ -326,8 +326,8 @@ func (c *client) doRequest(url string, body []byte) (*http.Response, error) {
|
||||||
req := c.newRequest(url, body)
|
req := c.newRequest(url, body)
|
||||||
resp, err := c.hc.Do(req)
|
resp, err := c.hc.Do(req)
|
||||||
if errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF) {
|
if errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF) {
|
||||||
// it is likely connection become stale. So we do one more attempt,
|
// it is likely connection became stale.
|
||||||
// so we do a one more attempt in hope request will succeed.
|
// So we do one more attempt in hope request will succeed.
|
||||||
// If not, the error should be handled by the caller as usual.
|
// If not, the error should be handled by the caller as usual.
|
||||||
req = c.newRequest(url, body)
|
req = c.newRequest(url, body)
|
||||||
resp, err = c.hc.Do(req)
|
resp, err = c.hc.Do(req)
|
||||||
|
|
Loading…
Reference in a new issue