From 59050f97f637b7cb423e6f5b63e36c1ea973c183 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Wed, 17 May 2023 11:17:22 -0700 Subject: Make GOMAXPROCS CPU limit aware Fixes #10950 --- main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.go') 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() { -- cgit v1.2.3