eseidel / space_traders

spacetraders.io client in Dart
MIT License
22 stars 1 forks source link

feat: async rate limit #2

Closed eseidel closed 1 year ago

eseidel commented 1 year ago

Preparing for allowing ships to run async from one another. Need to first fix the rate limiting code to handle that.

This adds a new async rate limiter and tests.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 85.96% and project coverage change: +0.54% :tada:

Comparison is base (83a87d3) 58.52% compared to head (72bea4d) 59.07%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2 +/- ## ========================================== + Coverage 58.52% 59.07% +0.54% ========================================== Files 47 47 Lines 3911 3951 +40 ========================================== + Hits 2289 2334 +45 + Misses 1622 1617 -5 ``` | [Files Changed](https://app.codecov.io/gh/eseidel/space_traders/pull/2?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Eric+Seidel) | Coverage Δ | | |---|---|---| | [packages/cli/lib/net/rate\_limit.dart](https://app.codecov.io/gh/eseidel/space_traders/pull/2?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Eric+Seidel#diff-cGFja2FnZXMvY2xpL2xpYi9uZXQvcmF0ZV9saW1pdC5kYXJ0) | `68.75% <85.96%> (+43.75%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.