🎨停止定时任务
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
comma 2024-06-14 19:51:46 +08:00
parent cbe1188e51
commit 0964384b52

View File

@ -7,7 +7,6 @@ import (
"net/http" "net/http"
"time" "time"
"wireguard-dashboard/config" "wireguard-dashboard/config"
"wireguard-dashboard/cron_task"
"wireguard-dashboard/initialize" "wireguard-dashboard/initialize"
"wireguard-dashboard/queues" "wireguard-dashboard/queues"
"wireguard-dashboard/route" "wireguard-dashboard/route"
@ -19,8 +18,8 @@ func init() {
if err := script.NewScript().Do(); err != nil { if err := script.NewScript().Do(); err != nil {
log.Errorf("执行脚本失败: %v", err.Error()) log.Errorf("执行脚本失败: %v", err.Error())
} }
go queues.StartConsumer() // 启动队列 go queues.StartConsumer() // 启动队列
go cron_task.StartCronTask() // 启动定时任务 //go cron_task.StartCronTask() // 启动定时任务
} }
func main() { func main() {