Use the new cron lib.

This commit is contained in:
lishuang committed 2020-07-11 16:30:28 +08:00
1 parent 02e0f10016
commit 192df21da4
4 files changed
+46 -29

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ func (this *TankLogger) Init() {
this.openFile()
expression := "0 0 0 * * ?"
expression := "0 0 * * *"
cronJob := cron.New()
entryId, err := cronJob.AddFunc(expression, this.maintain)
core.PanicError(err)