Closed antifuchs closed 1 year ago
Patch coverage: 100.00
% and project coverage change: -0.02
:warning:
Comparison is base (
6894267
) 97.51% compared to head (be49046
) 97.50%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
bors merge
Build succeeded:
Previously, it returned an enum whose variants had different jobs: one to indicate that a usage error had occurred and one to indicate the rate limiting result. That's not ideal as it complicated every use of the rate limiter.
Instead, return a nested result: The outermost can be used with the try/? operator, to ensure usage errors get propagated through, and then the one can be used like you would a non-
n
usage of the rate limiter.This is pretty incompatible to what was there before, so next release is a major one if this goes in.