Refactor constructor parameter for clarity in LeakyBucketLimiter
CI - Test, Publish and Release / run-tests (push) Successful in 18s
CI - Test, Publish and Release / create-release (push) Successful in 19s
CI - Test, Publish and Release / check-and-publish (push) Successful in 13s

This commit is contained in:
2026-06-15 07:56:15 +02:00
parent 4a7167ed7b
commit 4d5d57a367
@@ -75,10 +75,10 @@ public final class LeakyBucketLimiter implements RateLimiter {
/**
* Creates an empty bucket.
*
* @param state the creation timestamp in nanoseconds
* @param nowNanos the creation timestamp in nanoseconds
*/
private LeakyBucket(long state) {
this.state = new AtomicReference<>(new State(0, state));
private LeakyBucket(long nowNanos) {
this(new AtomicReference<>(new State(0, nowNanos)));
}
/**