RedissonLock optimization

pull/748/head
Nikita 8 years ago
parent d45af58259
commit 923498fff0

@ -658,12 +658,6 @@ public class RedissonLock extends RedissonExpirable implements RLock {
long elapsed = System.currentTimeMillis() - current;
time.addAndGet(-elapsed);
if (time.get() <= 0) {
unsubscribe(subscribeFuture, currentThreadId);
result.trySuccess(false);
return;
}
tryLockAsync(time, leaseTime, unit, subscribeFuture, result, currentThreadId);
}
});

Loading…
Cancel
Save