diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rr/main.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go index 863947cd..023e6ccb 100644 --- a/cmd/rr/main.go +++ b/cmd/rr/main.go @@ -6,7 +6,7 @@ import ( "github.com/fatih/color" "github.com/roadrunner-server/roadrunner/v2/internal/cli" - _ "go.uber.org/automaxprocs" + "go.uber.org/automaxprocs/maxprocs" ) // exitFn is a function for application exiting. @@ -15,6 +15,12 @@ var exitFn = os.Exit //nolint:gochecknoglobals // main CLI application entrypoint. func main() { exitFn(run()) } +func init() { + _, _ = maxprocs.Set(maxprocs.Min(1), maxprocs.Logger(func(_ string, _ ...interface{}) { + return + })) +} + // run this CLI application. func run() int { cmd := cli.NewCommand(filepath.Base(os.Args[0])) |