blizzard icon indicating copy to clipboard operation
blizzard copied to clipboard

Implement retries and ratelimiting

Open Floppy012 opened this issue 1 year ago • 1 comments

This PR is a continuation of #38. The codebase has changed a bit since that PR was opened so I decided do make a new one. This PR is somewhat inspired by #38.

I've made some changes to make enabling/configuring the rate limiter / retries simpler. These two features are disabled by default. For the rate limiter I've added a var that contains a configuration that matches Blizzard's rate limits.

It probably needs some documentation in the readme file to make people aware of the features.

Disclaimer: I'm still learning golang :)

Floppy012 avatar Oct 23 '23 02:10 Floppy012

Can you add a small example main.go in the examples folder demonstrating your retry?

FuzzyStatic avatar Nov 02 '23 16:11 FuzzyStatic