(l baker.Record, next func(baker.Record))
| 26 | } |
| 27 | |
| 28 | func (f *LazyFilter) Process(l baker.Record, next func(baker.Record)) { |
| 29 | h := time.Now().Hour() |
| 30 | upperLimit := 18 |
| 31 | if f.stakhanovite { |
| 32 | upperLimit = 20 |
| 33 | } |
| 34 | if h >= 9 && h <= upperLimit { |
| 35 | next(l) |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | func (f *LazyFilter) Stats() baker.FilterStats { |
| 40 | return baker.FilterStats{} |
nothing calls this directly
no outgoing calls
no test coverage detected