app/vmagent: fix comment typo after 992a1c0a3a

Signed-off-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit 757ae4275b)
This commit is contained in:
hagen1778 2023-08-24 09:32:11 +02:00
parent b9a2512ac3
commit 33bf28e1bd
No known key found for this signature in database
GPG key ID: 3BF75F3741CA9640

View file

@ -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)