From 72ed9b3717b0e127e177ee84e49b6339e5b7d43a Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Mon, 5 Jan 2026 10:53:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E5=92=8C?= =?UTF-8?q?=E9=92=89=E9=92=89=E6=9C=BA=E5=99=A8=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/server/main.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index baca30d..9b09f74 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -2,7 +2,6 @@ package main import ( "ai_scheduler/internal/config" - "context" "flag" "fmt" @@ -11,9 +10,9 @@ import ( func main() { configPath := flag.String("config", "./config/config_test.yaml", "Path to configuration file") - onBot := flag.String("bot", "", "bot start") + // onBot := flag.String("bot", "", "bot start") flag.Parse() - ctx := context.Background() + // ctx := context.Background() bc, err := config.LoadConfig(*configPath) if err != nil { log.Fatalf("加载配置失败: %v", err) @@ -27,8 +26,8 @@ func main() { cleanup() }() //钉钉机器人 - app.DingBotServer.Run(ctx, *onBot) + // app.DingBotServer.Run(ctx, *onBot) //定时任务 - app.Cron.Run(ctx) + // app.Cron.Run(ctx) log.Fatal(app.HttpServer.Listen(fmt.Sprintf(":%d", bc.Server.Port))) }