• Matthew Holt's avatar
    Don't share sync.Once with all directives · e0fdddc7
    Matthew Holt authored
    If each server block had only one sync.Once then all directives would refer to it and only the first directive would be able to use it! So this commit changes it to a map of sync.Once instances, keyed by directive. So by creating a new map for every server block, each directive in that block can get its own sync.Once which is exactly what is needed. They won't step on each other this way.
    e0fdddc7
config.go 7.48 KB