mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
hugolib: Cleanup the Goroutine count calculation
This commit is contained in:
@@ -33,11 +33,11 @@ func (s *Site) renderPages() error {
|
||||
|
||||
go errorCollator(results, errs)
|
||||
|
||||
procs := getGoMaxProcs()
|
||||
numWorkers := getGoMaxProcs() * 4
|
||||
|
||||
wg := &sync.WaitGroup{}
|
||||
|
||||
for i := 0; i < procs*4; i++ {
|
||||
for i := 0; i < numWorkers; i++ {
|
||||
wg.Add(1)
|
||||
go pageRenderer(s, pages, results, wg)
|
||||
}
|
||||
|
Reference in New Issue
Block a user