Use the new cron lib.
This commit is contained in:
1 parent
02e0f10016
commit
192df21da4
4 files changed
+46
-29
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user