anyweez / matchgrab

Retrieve and store archive of matches and summoners.
MIT License
1 stars 0 forks source link

Separates pacing and rate limiting logic from rest of app #11

Closed anyweez closed 7 years ago

anyweez commented 7 years ago

Primarily for easy testing, but also just cleaning up to make things more modular -- see issue #2 for more info. This creates a new Pacer struct which takes care of timing all API requests. This PR also adds some initial testing for the pacing logic and initial usages seem to be functioning just as before.