Closed sysulq closed 2 months ago
Seems like we should initial the pool as a global variable or use sync.Once to avoid data race here? I would like to send a PR to fix this data race problem, if you're interested 🙂 @pelletier
Thank you for catching this! I think a global variable is the way to go. A PR would be most welcomed :)
@pelletier Thanks for reply, here is the PR link: https://github.com/pelletier/go-toml/pull/947
Describe the bug
https://github.com/pelletier/go-toml/blob/v2/internal/tracker/seen.go#L334
To Reproduce
Expected behavior
Versions
Additional context Add any other context about the problem here that you think may help to diagnose.