diff --git a/server/src/main/java/org/apache/seata/server/ratelimit/TokenBucketLimiter.java b/server/src/main/java/org/apache/seata/server/ratelimit/TokenBucketLimiter.java index 9ce1bd21123..194aa301a38 100644 --- a/server/src/main/java/org/apache/seata/server/ratelimit/TokenBucketLimiter.java +++ b/server/src/main/java/org/apache/seata/server/ratelimit/TokenBucketLimiter.java @@ -64,9 +64,9 @@ public class TokenBucketLimiter implements RateLimiter, Initialize { */ private Bucket bucket; - private final int DEFAULT_BUCKET_TOKEN_NUM_PER_SECOND = Integer.MAX_VALUE; - private final int DEFAULT_BUCKET_TOKEN_MAX_NUM = Integer.MAX_VALUE; - private final int DEFAULT_BUCKET_TOKEN_INITIAL_NUM = Integer.MAX_VALUE; + private static final int DEFAULT_BUCKET_TOKEN_NUM_PER_SECOND = Integer.MAX_VALUE; + private static final int DEFAULT_BUCKET_TOKEN_MAX_NUM = Integer.MAX_VALUE; + private static final int DEFAULT_BUCKET_TOKEN_INITIAL_NUM = Integer.MAX_VALUE; public TokenBucketLimiter() {}