MCPcopy Create free account
hub / github.com/AdRoll/baker / Process

Method Process

filter/external_match.go:253–264  ·  view source on GitHub ↗
(l baker.Record, next func(baker.Record))

Source from the content-addressed store, hash-verified

251}
252
253func (f *ExternalMatch) Process(l baker.Record, next func(baker.Record)) {
254 f.mx.RLock()
255 _, ok := f.values[string(l.Get(f.cfg.fidx))]
256 f.mx.RUnlock()
257
258 if ok != f.cfg.KeepOnMatch {
259 atomic.AddInt64(&f.numFilteredLines, 1)
260 return
261 }
262
263 next(l)
264}

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected