aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-04-05 10:09:22 +0200
committerBjørn Erik Pedersen <[email protected]>2019-04-05 10:21:25 +0200
commit87b16abd93ff60acd245776d5b0d914fd580c259 (patch)
tree19dcc2ef755814cf2b19be533df0fe978db46f55 /main.go
parent415ca9673d3bd3c06ab94f3d83897c892fce5f27 (diff)
downloadhugo-87b16abd93ff60acd245776d5b0d914fd580c259.tar.gz
hugo-87b16abd93ff60acd245776d5b0d914fd580c259.zip
Add HUGO_NUMWORKERMULTIPLIER
And use that to calculate number of workers, if set, else fall back to number of logical CPUs. Also tweak the relevant related settings to match the new setup. Also remove the setting of `runtime.GOMAXPROCS` as this has been the default behaviour since Go 1.5. Fixes #5814
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/main.go b/main.go
index d04012111..ecb423e60 100644
--- a/main.go
+++ b/main.go
@@ -14,16 +14,12 @@
package main
import (
- "runtime"
-
"os"
"github.com/gohugoio/hugo/commands"
)
func main() {
-
- runtime.GOMAXPROCS(runtime.NumCPU())
resp := commands.Execute(os.Args[1:])
if resp.Err != nil {