Skip to content

Commit 3fdc4fd

Browse files
fix max-delay constraint (#5)
1 parent ce20d8c commit 3fdc4fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resilient/http-resilient-client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (c *resilientHttpClient) doWithRetry(r *http.Request) (*http.Response, erro
5555
start := time.Now()
5656
for i := uint16(0); i <= uint16(c.maxRetry); i++ {
5757
now := time.Now()
58-
if now.Sub(start) >= c.maxDelay {
58+
if now.Sub(start) > c.maxDelay {
5959
return nil, context.DeadlineExceeded
6060
}
6161
resp, err = c.client.Do(r)

0 commit comments

Comments
 (0)