提交 3c0d0d1f 编写于 作者: lakernote's avatar lakernote

增加分布式锁-jdbc实现

上级 d2241220
......@@ -38,9 +38,8 @@ public abstract class AbstractSimpleLock implements Lock {
}
private ScheduledFuture<?> scheduleLockRefresh(final String key, final String token, final Duration expiration) {
return taskScheduler.scheduleAtFixedRate(() -> {
refresh(key, token, expiration);
}, expiration.toMillis() / 3);
return taskScheduler.scheduleAtFixedRate(() ->
refresh(key, token, expiration), expiration.toMillis() / 3);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册