mirror of
https://github.com/PlayEdu/PlayEdu
synced 2026-02-03 15:22:19 +08:00
优化
This commit is contained in:
@@ -17,5 +17,5 @@ package xyz.playedu.common.service;
|
||||
|
||||
public interface RateLimiterService {
|
||||
|
||||
public Long current(String key, Long seconds);
|
||||
Long current(String key, Long seconds);
|
||||
}
|
||||
|
||||
@@ -37,8 +37,6 @@ public class RateLimiterServiceImpl implements RateLimiterService {
|
||||
|
||||
@Override
|
||||
public Long current(String key, Long seconds) {
|
||||
Long current = RedisUtil.handler().execute(redisScript, Arrays.asList(key, seconds + ""));
|
||||
log.info("key={},count={}", key, current);
|
||||
return current;
|
||||
return RedisUtil.handler().execute(redisScript, Arrays.asList(key, seconds + ""));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user