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