Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Пешков Дмитрий committed Sep 21, 2024
1 parent c7fb57b commit 90c00ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/gophermart/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ func main() {
withdrawalService := services.NewWithdrawalService(dbRes, loggerRes, conf.QueryTimeOut)
orderClient := client.NewOrderClient(loggerRes, conf.AccrualSystemAddress)

orderWorker := workers.NewOrderWorker(mainCtx, orderService, orderQueue, loggerRes, conf.WorkerCount, conf.RetryWorkerCount, orderClient)
orderWorker.Run()

appServer := server.NewServer(userService, orderService, withdrawalService, loggerRes, conf.RunAddr, authService)
if err := appServer.Start(); err != nil {
loggerRes.Error(err.Error())
}

orderWorker := workers.NewOrderWorker(mainCtx, orderService, orderQueue, loggerRes, conf.WorkerCount, conf.RetryWorkerCount, orderClient)
orderWorker.Run()
}

0 comments on commit 90c00ea

Please sign in to comment.