cats-retry
cats-retry copied to clipboard
Require maxRetries to be non-negative
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.
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.