From c4eb249770f9a6b6618c9d457604f00162156a5b Mon Sep 17 00:00:00 2001 From: Jyotinder Date: Mon, 21 Oct 2024 17:27:45 +0530 Subject: [PATCH] fix server crash: initialize numCores with default value --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index de78e0115..b36aae45a 100644 --- a/main.go +++ b/main.go @@ -89,6 +89,7 @@ func main() { } logr.Debug("The DiceDB server has started in multi-threaded mode.", slog.Int("number of cores", numCores)) } else { + numCores = 1 logr.Debug("The DiceDB server has started in single-threaded mode.") }