Fix concurrent map read and map write in short page lookups

Regression introduced in Hugo `v0.137.0`.

Fixes #13019
This commit is contained in:
Bjørn Erik Pedersen
2024-11-06 10:17:34 +01:00
parent 2c3efc8106
commit 95e2d5beb8
5 changed files with 170 additions and 50 deletions

View File

@@ -36,7 +36,7 @@ type Init struct {
prev *Init
children []*Init
init OnceMore
init onceMore
out any
err error
f func(context.Context) (any, error)