refactor: logparser v5 funcs

This commit is contained in:
Inanc Gumus
2019-08-29 16:08:46 +03:00
parent d28c6d54d2
commit 661e018258
10 changed files with 48 additions and 53 deletions

View File

@ -21,11 +21,11 @@ func (t *passThrough) Consume(results pipe.Iterator) error {
}
func (t *passThrough) Each(yield func(pipe.Record) error) error {
return t.Iterator.Each(func(r pipe.Record) error {
pass := func(r pipe.Record) error {
// fmt.Println(r.Fields())
// fmt.Println(r.Int("visits"))
return yield(r)
})
}
return t.Iterator.Each(pass)
}