Skip to content

Commit 6320d75

Browse files
committed
💡 添加源码注释
1 parent 27e2742 commit 6320d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-demo-ratelimit-redis/src/main/java/com/xkcoding/ratelimit/redis/aspect/RateLimiterAspect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public Object pointcut(ProceedingJoinPoint point) throws Throwable {
7575
private boolean shouldLimited(String key, long max, long timeout, TimeUnit timeUnit) {
7676
// 最终的 key 格式为:
7777
// limit:自定义key:IP
78-
// limit:方法名:IP
78+
// limit:类名.方法名:IP
7979
key = REDIS_LIMIT_KEY_PREFIX + key;
8080
// 统一使用单位毫秒
8181
long ttl = timeUnit.toMillis(timeout);

0 commit comments

Comments
 (0)