-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: *What* This diff changes the `find_ratelimitt_method` to return the most specific one that applies to a certain client id and set of identitites: 1. If there is a ratelimit for the main_id that will be the most specific one 2. If none match, the most specific one will be the one that matches the largest amount of identities. Eventually it could be one that matches 0 identities, because it's empty. *Why* We will want a way to have several ratelimits for a metric aply to different subsets, and likely a default that applies to all. This diff enables that default Reviewed By: andreacampi Differential Revision: D68418006 fbshipit-source-id: 718be8c9fa12a4eac05a546f9bcbf62cb5caadb4
- Loading branch information
1 parent
bed9a55
commit 0788aec
Showing
5 changed files
with
175 additions
and
26 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