good morning!!!!

Skip to content
Snippets Groups Projects
Commit 6c313fff authored by Wenbiao Zheng's avatar Wenbiao Zheng Committed by Felix Lange
Browse files

cmd/geth: don't set GOMAXPROCS by default (#17148)

This is no longer needed because Go uses all CPUs
by default. The change allows setting GOMAXPROCS in environment if needed.
parent a352de6a
Branches
Tags
No related merge requests found
......@@ -21,7 +21,6 @@ import (
"fmt"
"math"
"os"
"runtime"
godebug "runtime/debug"
"sort"
"strconv"
......@@ -209,8 +208,6 @@ func init() {
app.Flags = append(app.Flags, metricsFlags...)
app.Before = func(ctx *cli.Context) error {
runtime.GOMAXPROCS(runtime.NumCPU())
logdir := ""
if ctx.GlobalBool(utils.DashboardEnabledFlag.Name) {
logdir = (&node.Config{DataDir: utils.MakeDataDir(ctx)}).ResolvePath("logs")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment