Use the new cron lib.

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

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)