Skip to content

Commit

Permalink
General commit
Browse files Browse the repository at this point in the history
  • Loading branch information
atul24112001 committed Nov 20, 2024
1 parent a7e7444 commit 87b88da
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions server/game-manager/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 87b88da

Please sign in to comment.