From 8fb39958d2ee92c01cc4fa1e9e4811625b3ce702 Mon Sep 17 00:00:00 2001 From: coward Date: Thu, 9 May 2024 09:39:52 +0800 Subject: [PATCH] :art: --- initialize/init.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/initialize/init.go b/initialize/init.go index fe15302..63c3c54 100644 --- a/initialize/init.go +++ b/initialize/init.go @@ -33,7 +33,7 @@ func Init() { // initConfig // @description: 初始化配置 func initConfig() { - configBytes, err := os.ReadFile("/app/app.yaml") + configBytes, err := os.ReadFile("app.yaml") if err != nil { log.Panicf("读取配置文件失败: %v", err.Error()) } diff --git a/main.go b/main.go index 771139a..85d9f25 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ func init() { if err := script.NewScript().Do(); err != nil { log.Errorf("执行脚本失败: %v", err.Error()) } - queues.StartConsumer() // 启动队列 + go queues.StartConsumer() // 启动队列 } func main() {