From 6c313fff7bd7c1935d3193986df4c084b2e34c1c Mon Sep 17 00:00:00 2001 From: Wenbiao Zheng Date: Mon, 15 Oct 2018 19:02:53 -0500 Subject: 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. --- cmd/geth/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index fae4b5718..0288b3380 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -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") -- cgit