-
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 <jungjust@amazon.com> * Add TypedBytesLimiter Signed-off-by: Justin Jung <jungjust@amazon.com> * Remove addAndCheck func Signed-off-by: Justin Jung <jungjust@amazon.com> * Update BytesLimiter interface to accept dataType param Signed-off-by: Justin Jung <jungjust@amazon.com> * Added tests Signed-off-by: Justin Jung <jungjust@amazon.com> * Fix build + changelog Signed-off-by: Justin Jung <jungjust@amazon.com> * Fix wrong data type Signed-off-by: Justin Jung <jungjust@amazon.com> * Changed storeDataType to be exported Signed-off-by: Justin Jung <jungjust@amazon.com> * Revert []BytesLimiter to BytesLimtier Signed-off-by: Justin Jung <jungjust@amazon.com> * Lint Signed-off-by: Justin Jung <jungjust@amazon.com> * More reverts Signed-off-by: Justin Jung <jungjust@amazon.com> * More Signed-off-by: Justin Jung <jungjust@amazon.com> * Rename DefaultBytesLimiterFactory back to NewBytesLimiterFactory Signed-off-by: Justin Jung <jungjust@amazon.com> * Changed StoreDataType from string to int Signed-off-by: Justin Jung <jungjust@amazon.com> * Removed nil check for bytesLimiter Signed-off-by: Justin Jung <jungjust@amazon.com> * nit Signed-off-by: Justin Jung <jungjust@amazon.com> * Removed changelog Signed-off-by: Justin Jung <jungjust@amazon.com> --------- Signed-off-by: Justin Jung <jungjust@amazon.com>
- 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