diff options
author | Benjamin Elder <[email protected]> | 2023-05-17 11:17:22 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-17 20:17:22 +0200 |
commit | 59050f97f637b7cb423e6f5b63e36c1ea973c183 (patch) | |
tree | 666203e55bcfe04293f8ef04a7c1c74f2e6956ef /main.go | |
parent | faa6998f266bb37439ae3c945b3883dba945834e (diff) | |
download | hugo-59050f97f637b7cb423e6f5b63e36c1ea973c183.tar.gz hugo-59050f97f637b7cb423e6f5b63e36c1ea973c183.zip |
Make GOMAXPROCS CPU limit aware
Fixes #10950
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() { |