test cronSendWarReport

This commit is contained in:
shoopea 2019-12-12 18:26:36 +08:00
parent be55f1d1e1
commit f0b9969ce7

View File

@ -11,6 +11,7 @@ import (
func startCron() *cron.Cron {
c := cron.New(cron.WithLocation(time.UTC))
c.AddFunc("15 0,8,16 * * *", cronSendWarReport)
c.AddFunc("@every 1min", cronSendWarReport)
c.Start()
return c
}