lucky
lucky copied to clipboard
Action based rate limiting.
Purpose
Adds a way to set per action rate limits. Fixes #1865
Description
Include the module and write a rate_limit method to define the limit. The rate_limit_key method can be overridden if you want differeny key logic.
Checklist
- [X] - An issue already exists detailing the issue/or feature request that this PR fixes
- [X] - All specs are formatted with
crystal tool format spec src
- [ ] - Inline documentation has been added and/or updated
- [X] - Lucky builds on docker with
./script/setup
- [X] - All builds and specs pass on docker with
./script/test