From 5017267e804bb9c4a75b5c503dcb39f963fbd9dd Mon Sep 17 00:00:00 2001 From: peterxcli Date: Sun, 18 Feb 2024 20:59:22 +0800 Subject: [PATCH] fix: fix typo in variable name --- cmd/backend/main.go | 2 +- pkg/bootstrap/app.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/backend/main.go b/cmd/backend/main.go index f256533..defa814 100644 --- a/cmd/backend/main.go +++ b/cmd/backend/main.go @@ -73,7 +73,7 @@ func main() { // Init services userService := service.NewUserService(app.Conn, app.Cache) eventService := service.NewEventService(app.Conn, app.Cache) - asynqService := service.NewAsynqService(app.AsynqClient, app.AsyncqInspector, app.Env) + asynqService := service.NewAsynqService(app.AsynqClient, app.AsynqInspector, app.Env) services := &router.Services{ UserService: userService, diff --git a/pkg/bootstrap/app.go b/pkg/bootstrap/app.go index 92a0999..b37d29a 100644 --- a/pkg/bootstrap/app.go +++ b/pkg/bootstrap/app.go @@ -28,7 +28,7 @@ type Application struct { Engine *gin.Engine LineSocialClient *social.Client AsynqClient *asynq.Client - AsyncqInspector *asynq.Inspector + AsynqInspector *asynq.Inspector } func App(opts ...AppOpts) *Application { @@ -54,7 +54,7 @@ func App(opts ...AppOpts) *Application { Engine: engine, LineSocialClient: lineSocialClient, AsynqClient: asynqClient, - AsyncqInspector: asynqInspector, + AsynqInspector: asynqInspector, } for _, opt := range opts {