From 1c12365c82ef14ec7adbfe49f8815dd4b7621d7f Mon Sep 17 00:00:00 2001 From: Denys Sedchenko Date: Wed, 23 Oct 2024 19:20:22 -0400 Subject: [PATCH] feat: set correct GOMAXPROCS (#443) --- cmd/playground/main.go | 1 + go.mod | 1 + go.sum | 2 ++ 3 files changed, 4 insertions(+) diff --git a/cmd/playground/main.go b/cmd/playground/main.go index c31bfccb..bc9ed107 100644 --- a/cmd/playground/main.go +++ b/cmd/playground/main.go @@ -19,6 +19,7 @@ import ( "github.com/x1unix/go-playground/pkg/goplay" "github.com/x1unix/go-playground/pkg/util/cmdutil" "github.com/x1unix/go-playground/pkg/util/osutil" + _ "go.uber.org/automaxprocs" "go.uber.org/zap" ) diff --git a/go.mod b/go.mod index 9a50b15e..dadd08ec 100644 --- a/go.mod +++ b/go.mod @@ -33,6 +33,7 @@ require ( github.com/spf13/cobra v1.8.1 // indirect github.com/spf13/pflag v1.0.5 // indirect go.uber.org/atomic v1.9.0 // indirect + go.uber.org/automaxprocs v1.6.0 // indirect go.uber.org/multierr v1.8.0 // indirect golang.org/x/sys v0.21.0 // indirect google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 // indirect diff --git a/go.sum b/go.sum index 210a157a..75841231 100644 --- a/go.sum +++ b/go.sum @@ -56,6 +56,8 @@ github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1 go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs= +go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8= go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=