From fb0f708ee0a5e82e23dfc7098cc6dde9820fc66b Mon Sep 17 00:00:00 2001 From: Delweng Zheng Date: Mon, 30 Jul 2018 22:26:40 +0800 Subject: [PATCH] cmd: don't set GOMAXPROCS by default set by env GOMAXPROCS=xxx if you needed --- cmd/geth/main.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 77ef6afe24..2ced5dbedb 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" @@ -198,8 +197,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")