cats-retry icon indicating copy to clipboard operation
cats-retry copied to clipboard

Require maxRetries to be non-negative

Open ebarreras opened this issue 3 years ago • 1 comments

When creating a policy with limitRetries, it seems that it should be illegal to pass a negative number as in RetryPolicies.limitRetries[IO](-3), however these values are not rejected.

ebarreras avatar Nov 29 '21 17:11 ebarreras

I have pushed a possible fix in https://github.com/ebarreras/cats-retry/commits/require-max-retries-non-negative. If that makes sense I'd be happy to create a pr.

ebarreras avatar Nov 29 '21 17:11 ebarreras