perf[scheduler]: 将cron方法改为静态方法

This commit is contained in:
jaysunxiao committed 2021-08-02 16:53:42 +08:00
1 parent 84a5b9c0e9
commit f4255b12f4
1 file changed
+1 -1
@@ -174,7 +174,7 @@ public abstract class SchedulerBus {
/**
* cron表达式执行的任务
*/
public void scheduleCron(Runnable runnable, String cron) {
public static void scheduleCron(Runnable runnable, String cron) {
if (SchedulerContext.isStop()) {
return;
}