Skip to content

Commit

Permalink
optimize inject mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhom1314 committed Dec 30, 2023
1 parent 0a64a1a commit 5205bc8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.springframework.data.redis.core.script.RedisScript;
import org.springframework.scripting.support.ResourceScriptSource;

import javax.annotation.Resource;
import java.time.Instant;
import java.util.Collections;
import java.util.List;
Expand All @@ -45,7 +44,7 @@ public abstract class AbstractRedisRateLimiter implements RedisRateLimiter<List<

private final RedisScript<List<Long>> script;

protected StringRedisTemplate stringRedisTemplate;
protected final StringRedisTemplate stringRedisTemplate;

protected static final AtomicInteger COUNTER = new AtomicInteger(0);

Expand Down

0 comments on commit 5205bc8

Please sign in to comment.