mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +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)
|
||||
resp, err := c.hc.Do(req)
|
||||
if errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF) {
|
||||
// it is likely connection become stale. So we do one more attempt,
|
||||
// so we do a one more attempt in hope request will succeed.
|
||||
// it is likely connection became stale.
|
||||
// So we do one more attempt in hope request will succeed.
|
||||
// If not, the error should be handled by the caller as usual.
|
||||
req = c.newRequest(url, body)
|
||||
resp, err = c.hc.Do(req)
|
||||
|
|
Loading…
Reference in a new issue