You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
maxRetries := uint(math.MaxUint)
maxDelay := 1
err := retry.Do(
fn,
retry.Context(ctx),
retry.Delay(time.Second),
retry.MaxDelay(time.Duration(maxDelay)*time.Second),
retry.Attempts(maxRetries),
)
if err != nil {
log.Errorf("failed to get task result: %v", err)
}
The text was updated successfully, but these errors were encountered:
PengWuLin
changed the title
Configuring the retry count to be infinite leads to memory leaks.
Configuring the retry count to be math.MaxUint leads to memory leaks.
Jul 9, 2024
The text was updated successfully, but these errors were encountered: