重复插入问题修复
This commit is contained in:
@@ -176,7 +176,7 @@ public class ApiAccessLimitUtil {
|
||||
boolean lock = Boolean.TRUE.equals(redisUtils.setIfAbsent(lockKey, clientId, seconds));
|
||||
int count = 0;
|
||||
while (!lock) {
|
||||
if (count++ > 100) {
|
||||
if (count++ > 1000) {
|
||||
throw new RuntimeException("系统繁忙, 稍后再试");
|
||||
}
|
||||
Thread.sleep(20);
|
||||
|
||||
Reference in New Issue
Block a user