mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
hugolib: Cleanup the Goroutine count calculation
This commit is contained in:
parent
91968f3b1f
commit
13972d6c83
3 changed files with 10 additions and 10 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue