update 更新 RedisUtils 返回客户端实例

This commit is contained in:
疯狂的狮子li
2021-12-06 19:52:27 +08:00
parent 8362fe1b39
commit 1445d6d24a
2 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ public class RateLimiterAspect {
stringBuffer.append(ServletUtils.getClientIP()).append("-");
} else if (rateLimiter.limitType() == LimitType.CLUSTER){
// 获取客户端实例id
stringBuffer.append(RedisUtils.getClientId()).append("-");
stringBuffer.append(RedisUtils.getClient().getId()).append("-");
}
MethodSignature signature = (MethodSignature) point.getSignature();
Method method = signature.getMethod();