diff --git a/cmd/juno/juno.go b/cmd/juno/juno.go index 6a0c50f1a9..d3415d6949 100644 --- a/cmd/juno/juno.go +++ b/cmd/juno/juno.go @@ -17,7 +17,7 @@ import ( "github.com/mitchellh/mapstructure" "github.com/spf13/cobra" "github.com/spf13/viper" - _ "go.uber.org/automaxprocs" + "go.uber.org/automaxprocs/maxprocs" ) const greeting = ` @@ -128,6 +128,11 @@ const ( var Version string func main() { + if _, err := maxprocs.Set(); err != nil { + fmt.Printf("error: cannot set maxprocs: %v", err) + return + } + quit := make(chan os.Signal, 1) signal.Notify(quit, os.Interrupt, syscall.SIGTERM)