正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -7,6 +7,7 @@ import ( | @@ -7,6 +7,7 @@ import ( | ||
7 | "github.com/hibiken/asynq" | 7 | "github.com/hibiken/asynq" |
8 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/application/productRecord/command" | 8 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/application/productRecord/command" |
9 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/application/productRecord/service" | 9 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/application/productRecord/service" |
10 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/constant" | ||
10 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/domain" | 11 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/domain" |
11 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/log" | 12 | "gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/log" |
12 | "os" | 13 | "os" |
@@ -16,7 +17,7 @@ import ( | @@ -16,7 +17,7 @@ import ( | ||
16 | 17 | ||
17 | func Run() { | 18 | func Run() { |
18 | srv := asynq.NewServer( | 19 | srv := asynq.NewServer( |
19 | - asynq.RedisClientOpt{Addr: ":6379"}, | 20 | + asynq.RedisClientOpt{Addr: constant.REDIS_ADDRESS}, |
20 | asynq.Config{Concurrency: 1}, | 21 | asynq.Config{Concurrency: 1}, |
21 | ) | 22 | ) |
22 | 23 |
-
请 注册 或 登录 后发表评论