Commit 394c887d authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/cron' into 'develop'

优化 See merge request !27
parents 09069482 bf3eb818
......@@ -21,7 +21,6 @@ func init() {
logging.Setup()
gredis.Setup()
util.Setup()
cron.Setup()
}
......
......@@ -5,8 +5,11 @@ import (
"github.com/robfig/cron"
)
func Setup(){
c := cron.New()
var c *cron.Cron
func Setup() {
c = cron.New()
c.AddFunc("* * * * * *", func() {
gas_service := coin_gas_service.CoinGas{}
gas_service.Etherscan()
......
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