🎨
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-05-09 09:39:52 +08:00
parent d67b35849d
commit 8fb39958d2
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ func Init() {
// initConfig // initConfig
// @description: 初始化配置 // @description: 初始化配置
func initConfig() { func initConfig() {
configBytes, err := os.ReadFile("/app/app.yaml") configBytes, err := os.ReadFile("app.yaml")
if err != nil { if err != nil {
log.Panicf("读取配置文件失败: %v", err.Error()) log.Panicf("读取配置文件失败: %v", err.Error())
} }

View File

@ -16,7 +16,7 @@ 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())
} }
queues.StartConsumer() // 启动队列 go queues.StartConsumer() // 启动队列
} }
func main() { func main() {