未验证 提交 b11f517d 编写于 作者: W Wenjun Ruan 提交者: GitHub

Merge pull request #47 from ruanwenjun/dev_wenjun_fixAsyncDelay

Set async check miniest interval to 1s
......@@ -42,7 +42,8 @@ public class AsyncTaskExecutionContext implements Delayed {
@Override
public long getDelay(TimeUnit unit) {
return unit.toSeconds(asyncTaskExecuteFunction.getTaskExecuteInterval().toMillis());
long intervalSeconds = Math.max(asyncTaskExecuteFunction.getTaskExecuteInterval().getSeconds(), 1);
return unit.convert(intervalSeconds, TimeUnit.SECONDS);
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册