From 87b88da5acf892852425579443d75cde7feed003 Mon Sep 17 00:00:00 2001 From: atul24112001 Date: Wed, 20 Nov 2024 19:56:46 +0530 Subject: [PATCH] General commit --- server/game-manager/index.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/server/game-manager/index.go b/server/game-manager/index.go index e6a739b..f8680d5 100644 --- a/server/game-manager/index.go +++ b/server/game-manager/index.go @@ -59,19 +59,19 @@ func InitiateInstance(ctx context.Context, wg sync.WaitGroup) { DB: 0, }) - opt, err := redis.ParseURL(os.Getenv("REDIS_URL")) - if err != nil { - log.Fatal("Error parsing redis url: ", err.Error()) - return - } + // opt, err := redis.ParseURL(os.Getenv("REDIS_URL")) + // if err != nil { + // log.Fatal("Error parsing redis url: ", err.Error()) + // return + // } // client := redis.NewClient(opt) - // dbQueue := Queue{ - // client: client, - // queueName: "mari-arena-db-queue", - // processingKey: "mari-arena-db-queue:processing", - // timeout: 10 * time.Second, - // } + dbQueue := Queue{ + client: client, + queueName: "mari-arena-db-queue", + processingKey: "mari-arena-db-queue:processing", + timeout: 10 * time.Second, + } gameQueue := Queue{ client: client, queueName: "mari-arena-queue",