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>
This commit is contained in:
parent
3d8dec3e4c
commit
f9604bcf3a
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