aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorWenbiao Zheng <delweng@gmail.com>2018-10-16 08:02:53 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-10-16 08:02:53 +0800
commit6c313fff7bd7c1935d3193986df4c084b2e34c1c (patch)
treeb7b7d4b07add34ddaaf3459bef9843133ee5ca47 /cmd
parenta352de6a08db2c68383c7b1fdcf8267184b7dcea (diff)
downloaddexon-6c313fff7bd7c1935d3193986df4c084b2e34c1c.tar
dexon-6c313fff7bd7c1935d3193986df4c084b2e34c1c.tar.gz
dexon-6c313fff7bd7c1935d3193986df4c084b2e34c1c.tar.bz2
dexon-6c313fff7bd7c1935d3193986df4c084b2e34c1c.tar.lz
dexon-6c313fff7bd7c1935d3193986df4c084b2e34c1c.tar.xz
dexon-6c313fff7bd7c1935d3193986df4c084b2e34c1c.tar.zst
dexon-6c313fff7bd7c1935d3193986df4c084b2e34c1c.zip
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.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/main.go3
1 files changed, 0 insertions, 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")