fix: closer function change

This commit is contained in:
rupinder-syngh
2025-04-07 17:37:41 +05:30
parent 4d86a94b3b
commit d1377583ec

View File

@@ -159,7 +159,7 @@ func (m *Manager) SchemaValidator(ctx context.Context, cfg *Config) (definition.
return nil, err
}
if closer != nil {
m.addCloser(func() {
m.closers = append(m.closers, func() {
if err := closer(); err != nil {
panic(err)
}