-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IntervalRateLimiter initial state
Summary: When using monotonic clocks the epoch may be reset on system reboot, so `0` may not be enough in the past when requesting a large interval to guarantee that the first check succeeds. Switch to the minimum integer instead. Reviewed By: satyajanga, terrelln Differential Revision: D51509394 fbshipit-source-id: 8ff1339184f4cfc9a179e24bcfd96229e39b7c57
- Loading branch information
1 parent
1a1dfd6
commit fb047ca
Showing
3 changed files
with
16 additions
and
2 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