瀏覽代碼

异步线程修改

kk 1 月之前
父節點
當前提交
6f5135ecd6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      game-business/src/main/java/com/game/business/task/WebSokcetTask.java

+ 1 - 1
game-business/src/main/java/com/game/business/task/WebSokcetTask.java

@@ -14,7 +14,7 @@ public class WebSokcetTask {
     @Value("${websocket.switch}")
     private Boolean taskSwitch;
 
-    @Scheduled(cron = "0/10 * * * * ? ")
+    @Scheduled(cron = "0/5 * * * * ? ")
     public void liveDividedTask() throws IOException {
         if(!taskSwitch){
             return;