From b10803964f3069ed8d72a9b5e24cb233e1b950b5 Mon Sep 17 00:00:00 2001 From: chenzhiguo Date: Mon, 6 Jan 2025 10:57:15 +0800 Subject: [PATCH] Fix the default value is wrong --- .../agent/governance/invoke/ratelimit/AbstractRateLimiter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/invoke/ratelimit/AbstractRateLimiter.java b/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/invoke/ratelimit/AbstractRateLimiter.java index b11861c5..777a3811 100644 --- a/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/invoke/ratelimit/AbstractRateLimiter.java +++ b/joylive-core/joylive-governance-api/src/main/java/com/jd/live/agent/governance/invoke/ratelimit/AbstractRateLimiter.java @@ -59,7 +59,7 @@ public abstract class AbstractRateLimiter implements RateLimiter { @Getter protected long lastAccessTime; - protected final AtomicBoolean started = new AtomicBoolean(false); + protected final AtomicBoolean started = new AtomicBoolean(true); /** * Constructs an instance of the AbstractRateLimiter class with the given rate limit policy and time unit.