提交 6320d75d 编写于 作者: 不合群的混子's avatar 不合群的混子

💡 添加源码注释

上级 27e2742c
......@@ -75,7 +75,7 @@ public class RateLimiterAspect {
private boolean shouldLimited(String key, long max, long timeout, TimeUnit timeUnit) {
// 最终的 key 格式为:
// limit:自定义key:IP
// limit:方法名:IP
// limit:类名.方法名:IP
key = REDIS_LIMIT_KEY_PREFIX + key;
// 统一使用单位毫秒
long ttl = timeUnit.toMillis(timeout);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册