forked from limitd/limitdb
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add fixed_window bucket option (#79)
* feat: add fixed_window bucket option * activate fixed_window through param so we can control the rollout using feature flags * add fixed window on ERL * disabled CI as docker-compose is erroring out * adjust reset_ms based on fixed_window * fixed CI to use docker compose instead of docker-compose * fix take_elevated for fixed_window * tests to make sure the last_drip ain't modified within the same interval in fixed window * fixed window param takes precedence over bucket config * added fixed_window to README.md * improved description in readme * fixed returning modified current_timestamp and reset_ms correctly calculated for fixed window in takeeleavated * added isFixedWindowEnabled tests and clarified README.md * fixed flaky test * clarified README.md and added tests * missing trail line * nit:trailing comma --------- Co-authored-by: panga <[email protected]>
- Loading branch information
Showing
9 changed files
with
312 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.