Commit 2fe631ba authored by shajiaiming's avatar shajiaiming

fix

parent bf3eb818
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
var c *cron.Cron var c *cron.Cron
func Setup() { func Setup() error {
c = cron.New() c = cron.New()
c.AddFunc("* * * * * *", func() { c.AddFunc("* * * * * *", func() {
...@@ -21,4 +21,6 @@ func Setup() { ...@@ -21,4 +21,6 @@ func Setup() {
}) })
c.Start() c.Start()
return nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment