app/vmagent: fix comment typo after 992a1c0a3a

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2023-08-24 09:32:11 +02:00 committed by Aliaksandr Valialkin
parent 3d8dec3e4c
commit f9604bcf3a
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

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