Bladeren bron

异步线程修改

kk 1 maand geleden
bovenliggende
commit
479658a2ab
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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/3 * * * * ? ")
+    @Scheduled(cron = "0/10 * * * * ? ")
     public void liveDividedTask() throws IOException {
         if(!taskSwitch){
             return;