boweniac il y a 3 semaines
Parent
commit
e0fb2ad901
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      crontask/init.go

+ 4 - 4
crontask/init.go

@@ -43,8 +43,8 @@ func ScheduleRun(c *cron.Cron, serverCtx *svc.ServiceContext) {
 		computeStatistic.computeStatistic()
 	})
 
-	syncWx := NewCronTask(context.Background(), serverCtx)
-	c.AddFunc("*/30 * * * *", func() {
-		syncWx.syncWx()
-	})
+	//syncWx := NewCronTask(context.Background(), serverCtx)
+	//c.AddFunc("*/30 * * * *", func() {
+	//	syncWx.syncWx()
+	//})
 }