记得上下班打卡 | git大法好,push需谨慎

Commit 276575ff authored by 张国柄's avatar 张国柄

fix:redisson;

parent 9f9ca7ad
......@@ -56,11 +56,15 @@ public class RedisDistributedLocker implements DistributedLocker {
@Override
public void unlock(String lockKey) {
RLock lock = redissonClient.getLock(lockKey);
if (lock.isHeldByCurrentThread()) {
lock.unlock();
}
}
@Override
public void unlock(RLock lock) {
if (lock.isHeldByCurrentThread()) {
lock.unlock();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment