Skip to content

Commit

Permalink
Revert "cmd/geth: disable automaxprocs log (ethereum#27814)"
Browse files Browse the repository at this point in the history
This reverts commit 45e6620.
  • Loading branch information
devopsbo3 authored Nov 10, 2023
1 parent ccb9c19 commit ff1fe1c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/metrics"
"github.com/ethereum/go-ethereum/node"
"go.uber.org/automaxprocs/maxprocs"

// Force-load the tracer engines to trigger registration
_ "github.com/ethereum/go-ethereum/eth/tracers/js"
_ "github.com/ethereum/go-ethereum/eth/tracers/native"

// Automatically set GOMAXPROCS to match Linux container CPU quota.
_ "go.uber.org/automaxprocs"

"github.com/urfave/cli/v2"
)

Expand Down Expand Up @@ -243,7 +245,6 @@ func init() {
)

app.Before = func(ctx *cli.Context) error {
maxprocs.Set() // Automatically set GOMAXPROCS to match Linux container CPU quota.
flags.MigrateGlobalFlags(ctx)
return debug.Setup(ctx)
}
Expand Down

0 comments on commit ff1fe1c

Please sign in to comment.