mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 13:30:51 +00:00
Listen channel before sending values to it
The 'results' channel is not listend before sending error values in a loop checking IsRenderable or not. This fixes it.
This commit is contained in:
parent
253a618854
commit
e9853642e5
1 changed files with 3 additions and 4 deletions
|
@ -1357,6 +1357,9 @@ func (s *Site) RenderPages() error {
|
||||||
|
|
||||||
results := make(chan error)
|
results := make(chan error)
|
||||||
pages := make(chan *Page)
|
pages := make(chan *Page)
|
||||||
|
errs := make(chan error)
|
||||||
|
|
||||||
|
go errorCollator(results, errs)
|
||||||
|
|
||||||
procs := getGoMaxProcs()
|
procs := getGoMaxProcs()
|
||||||
|
|
||||||
|
@ -1387,10 +1390,6 @@ func (s *Site) RenderPages() error {
|
||||||
go pageRenderer(s, pages, results, wg)
|
go pageRenderer(s, pages, results, wg)
|
||||||
}
|
}
|
||||||
|
|
||||||
errs := make(chan error)
|
|
||||||
|
|
||||||
go errorCollator(results, errs)
|
|
||||||
|
|
||||||
for _, page := range s.Pages {
|
for _, page := range s.Pages {
|
||||||
pages <- page
|
pages <- page
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue