From b92ed7c38e1cc2435f284325418d9dd54f829f86 Mon Sep 17 00:00:00 2001 From: neverteaser Date: Sun, 21 Mar 2021 01:50:52 +0800 Subject: [PATCH] fix(be):remove duplicate init --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index 4e024c2..b597bea 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,6 @@ import ( "next-terminal/server/repository" "github.com/labstack/gommon/log" - "github.com/robfig/cron/v3" ) const Version = "v0.3.4" @@ -35,9 +34,6 @@ func Run() error { // 为了兼容之前调用global包的代码 后期预期会改为调用pgk/config global.Config = config.GlobalCfg - global.Cron = cron.New(cron.WithSeconds()) //精确到秒 - global.Cron.Start() - db := api.SetupDB() e := api.SetupRoutes(db) global.Cache = api.SetupCache()