Skip to content

Commit

Permalink
fix server crash: initialize numCores with default value
Browse files Browse the repository at this point in the history
  • Loading branch information
JyotinderSingh committed Oct 21, 2024
1 parent efc20a7 commit c4eb249
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
}

Expand Down

0 comments on commit c4eb249

Please sign in to comment.