This commit is contained in:
Julien 2025-03-05 16:49:14 -08:00 committed by GitHub
commit 8a1fe3c9b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -281,6 +281,7 @@ func (c *Client) Store(ctx context.Context, req []byte, attempt int) (WriteRespo
if attempt > 0 {
httpReq.Header.Set("Retry-Attempt", strconv.Itoa(attempt))
httpReq.Close = attempt > 3
}
ctx, cancel := context.WithTimeout(ctx, c.timeout)