-
Notifications
You must be signed in to change notification settings - Fork 204
Bump bucket4j to 8.16 #3652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Bump bucket4j to 8.16 #3652
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,7 +59,9 @@ constructor( | |
| .withClientSideConfig( | ||
| // Use Clock instead of calling System.currentTimeMillis() for refill determination | ||
| // Equivalent logic at runtime, but lets us mock the refill times in integration tests | ||
| ClientSideConfig.getDefault().withClientClock(ClockTimeMeter(clock)) | ||
| ClientSideConfig.getDefault() | ||
| .withClientClock(ClockTimeMeter(clock)) | ||
| .withMaxRetries(5) | ||
|
||
| ) | ||
| .withExpirationStrategy( | ||
| // Set Redis TTLs to the bucket refill period + additionalTtl | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an aside, I have noticed a few libraries we depend on that are compiled against JDK 17, but misk itself is JDK 11. Is this possible only because our container runtime is ultimately Java 21?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't know Misk is jdk 11. I went with jdk 17 only because the relocation notices here point to the jdk17 packages. I don't know what the implications are of compiling against different JDK versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrw any thoughts here? I know it wouldn't be the first library in misk to do this, and I think the retry feature we want is only available in 8.16.x which seems to be Java 17 only