aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/main.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-05 05:35:37 +0900
committernsfisis <nsfisis@gmail.com>2024-08-05 05:35:37 +0900
commitdc16e903999af89d87364ad6619e7c8b41301da4 (patch)
tree529f1debc2972ac1486e8c0ca4b25827ccd069a6 /backend/main.go
parent2a551a05d714657d7cd3b581290054c97398e968 (diff)
downloadiosdc-japan-2025-albatross-dc16e903999af89d87364ad6619e7c8b41301da4.tar.gz
iosdc-japan-2025-albatross-dc16e903999af89d87364ad6619e7c8b41301da4.tar.zst
iosdc-japan-2025-albatross-dc16e903999af89d87364ad6619e7c8b41301da4.zip
feat: show execution result in play page
Diffstat (limited to 'backend/main.go')
-rw-r--r--backend/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.go b/backend/main.go
index 7cfbe2f..e3d0052 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -61,7 +61,6 @@ func main() {
e.Use(middleware.Recover())
taskQueue := taskqueue.NewQueue("task-db:6379")
- workerServer := taskqueue.NewWorkerServer("task-db:6379", queries)
gameHubs := game.NewGameHubs(queries, taskQueue)
err = gameHubs.RestoreFromDB(ctx)
@@ -98,6 +97,7 @@ func main() {
gameHubs.Run()
+ workerServer := taskqueue.NewWorkerServer("task-db:6379", queries, gameHubs.C())
go func() {
workerServer.Run()
}()