Browse Source

开启定时任务

pull/58/head
zhangxin 3 years ago
parent
commit
ce8ff8e250
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      main.go

+ 2
- 1
main.go View File

@ -4,6 +4,7 @@ import (
"LAPP_LF_MOM_BACKEND/conf"
"LAPP_LF_MOM_BACKEND/db"
"LAPP_LF_MOM_BACKEND/infra/logger"
"LAPP_LF_MOM_BACKEND/task"
"LAPP_LF_MOM_BACKEND/utils"
"LAPP_LF_MOM_BACKEND/web/middleware/glog"
"LAPP_LF_MOM_BACKEND/web/routes"
@ -124,7 +125,7 @@ func imain() {
if err != nil {
log.Fatal("init logger config failed, error:", err.Error())
}
//go task.Start()
go task.Start()
//if err != nil {
// log.Fatal("task start failed, error: " + err.Error())
//}


Loading…
Cancel
Save