summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-11-25 16:57:52 +0100
committerValery Piashchynski <[email protected]>2022-11-25 16:57:52 +0100
commitbb97ae875c0ce69fa2f2fc502d5ee0805fed1f3e (patch)
treefcc813557307905867b585b408d203cdd862a162 /cmd
parent823078cfc024c004497f74950507c20ba36ce4aa (diff)
mod: update deps
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rr/main.go8
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]))