Pārlūkot izejas kodu

二期 频安宝bug

suntianwu 3 gadi atpakaļ
vecāks
revīzija
ad51ae415b

+ 2 - 2
src/main/java/com/care/mqtt/schedule/MqttMsgSchedule.java

@@ -24,9 +24,9 @@ public class MqttMsgSchedule {
    @Autowired
    @Autowired
     private MqttMsgRedisService mqttMsgRedisService;
     private MqttMsgRedisService mqttMsgRedisService;
     /**
     /**
-     * 5 秒钟调用一次
+     * 10 秒钟调用一次
      */
      */
-    @Scheduled(cron = "0/5 * * * * ?")
+    @Scheduled(cron = "0/10 * * * * ?")
     public void rotationRedis() {
     public void rotationRedis() {
         try {
         try {
             mqttMsgRedisService.rotationRedis();
             mqttMsgRedisService.rotationRedis();