aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorBenjamin Elder <[email protected]>2023-05-17 11:17:22 -0700
committerGitHub <[email protected]>2023-05-17 20:17:22 +0200
commit59050f97f637b7cb423e6f5b63e36c1ea973c183 (patch)
tree666203e55bcfe04293f8ef04a7c1c74f2e6956ef /main.go
parentfaa6998f266bb37439ae3c945b3883dba945834e (diff)
downloadhugo-59050f97f637b7cb423e6f5b63e36c1ea973c183.tar.gz
hugo-59050f97f637b7cb423e6f5b63e36c1ea973c183.zip
Make GOMAXPROCS CPU limit aware
Fixes #10950
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index e08bf7c53..51c0a04bd 100644
--- a/main.go
+++ b/main.go
@@ -18,6 +18,9 @@ import (
"os"
"github.com/gohugoio/hugo/commands"
+
+ // default GOMAXPROCS to be CPU limit aware, still respecting GOMAXPROCS env
+ _ "go.uber.org/automaxprocs"
)
func main() {