Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring the retry count to be math.MaxUint leads to memory leaks. #118

Open
PengWuLin opened this issue Jul 9, 2024 · 0 comments
Open

Comments

@PengWuLin
Copy link

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

image

@PengWuLin 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant