1
mirror of https://github.com/jlelse/GoBlog synced 2024-07-15 12:22:58 +00:00

Fix waitgroup

This commit is contained in:
Jan-Lukas Else 2023-09-23 20:43:37 +02:00
parent c57ae03502
commit 75e60326ff

View File

@ -26,8 +26,8 @@ func (*goBlog) wrapForPlugins(
_ = pw.Close()
wg.Wait()
}
wg.Add(1)
go func() {
wg.Add(1)
defer wg.Done()
doc, err := goquery.NewDocumentFromReader(pr)
_ = pr.CloseWithError(err)