fix: remove redundant configuration call in Add function to config parsers correctly

This commit is contained in:
krau
2025-11-23 17:41:44 +08:00
parent 2c5d6f0e57
commit c58fa454bb

View File

@@ -30,7 +30,6 @@ var (
)
func Add(p ...parser.Parser) {
configOnce.Do(configParsers)
mu.Lock()
defer mu.Unlock()
parsers = append(parsers, p...)