wimglenn / advent-of-code-data

Get your Advent of Code data with a single import statement
MIT License
515 stars 54 forks source link

implement rate-limiter #117

Closed wimglenn closed 1 year ago

wimglenn commented 1 year ago

start with a small delay and gradually increase it. log warnings if you're being rate-limited. closes #59

codecov[bot] commented 1 year ago

Codecov Report

Merging #117 (5182d80) into main (488d6e5) will increase coverage by 0.00%. The diff coverage is 95.12%.

@@           Coverage Diff           @@
##             main     #117   +/-   ##
=======================================
  Coverage   91.80%   91.81%           
=======================================
  Files          24       24           
  Lines        2515     2542   +27     
  Branches      337      338    +1     
=======================================
+ Hits         2309     2334   +25     
- Misses        151      152    +1     
- Partials       55       56    +1     
Impacted Files Coverage Δ
aocd/utils.py 90.19% <93.75%> (+0.67%) :arrow_up:
aocd/models.py 93.48% <100.00%> (-0.05%) :arrow_down:
tests/conftest.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more