:art:调整定时任务执行时间,以及启动时间
Some checks failed
continuous-integration/drone/tag Build was killed

This commit is contained in:
coward
2024-12-05 11:49:29 +08:00
parent ca42c72e0f
commit f09d0d2994
3 changed files with 22 additions and 21 deletions

View File

@@ -22,8 +22,6 @@ func init() {
log.Errorf("执行脚本失败: %v", err.Error())
}
// 启动定时任务
go cron.Task()
}
func main() {
@@ -35,6 +33,9 @@ func main() {
pprof.Register(handler, "/monitoring")
}
// 启动定时任务
cron.Task()
httpServe := http.Server{
Addr: fmt.Sprintf(":%d", config.Config.Http.Port),
Handler: handler,