-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhanced bytes limiter with data type param (#7414)
* Refactor existing stats incrementation for touched and fetched data Signed-off-by: Justin Jung <[email protected]> * Add TypedBytesLimiter Signed-off-by: Justin Jung <[email protected]> * Remove addAndCheck func Signed-off-by: Justin Jung <[email protected]> * Update BytesLimiter interface to accept dataType param Signed-off-by: Justin Jung <[email protected]> * Added tests Signed-off-by: Justin Jung <[email protected]> * Fix build + changelog Signed-off-by: Justin Jung <[email protected]> * Fix wrong data type Signed-off-by: Justin Jung <[email protected]> * Changed storeDataType to be exported Signed-off-by: Justin Jung <[email protected]> * Revert []BytesLimiter to BytesLimtier Signed-off-by: Justin Jung <[email protected]> * Lint Signed-off-by: Justin Jung <[email protected]> * More reverts Signed-off-by: Justin Jung <[email protected]> * More Signed-off-by: Justin Jung <[email protected]> * Rename DefaultBytesLimiterFactory back to NewBytesLimiterFactory Signed-off-by: Justin Jung <[email protected]> * Changed StoreDataType from string to int Signed-off-by: Justin Jung <[email protected]> * Removed nil check for bytesLimiter Signed-off-by: Justin Jung <[email protected]> * nit Signed-off-by: Justin Jung <[email protected]> * Removed changelog Signed-off-by: Justin Jung <[email protected]> --------- Signed-off-by: Justin Jung <[email protected]>
- Loading branch information
1 parent
86382a8
commit 651a4a4
Showing
4 changed files
with
151 additions
and
41 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