Make GOMAXPROCS CPU limit aware

Fixes #10950
This commit is contained in:
Benjamin Elder
2023-05-17 11:17:22 -07:00
committed by GitHub
parent faa6998f26
commit 59050f97f6
3 changed files with 6 additions and 0 deletions

View File

@@ -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() {