JSFilter is not suitable for concurrent use! Wrap it with filter pool for that!
| 21 | // JSFilter is not suitable for concurrent use! |
| 22 | // Wrap it with filter pool for that! |
| 23 | type JSFilter struct { |
| 24 | funcPool chan JSFilterFunc |
| 25 | next Filter |
| 26 | } |
| 27 | |
| 28 | func NewJSFilter(filename string, instances int, logger *clog.CondLogger, next Filter) (*JSFilter, error) { |
| 29 | script, err := os.ReadFile(filename) |
nothing calls this directly
no outgoing calls
no test coverage detected