opt:分配添加锁释放时间
This commit is contained in:
@@ -2437,7 +2437,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
}
|
||||
|
||||
RLock lock = redissonClient.getLock("all_cancelDivOne");
|
||||
boolean tryLock = lock.tryLock(0, TimeUnit.SECONDS);
|
||||
boolean tryLock = lock.tryLock(0, 60,TimeUnit.SECONDS);
|
||||
|
||||
try {
|
||||
if (tryLock) {
|
||||
|
||||
Reference in New Issue
Block a user