(data *baker.Data)
| 210 | } |
| 211 | |
| 212 | func (s *CompressedInput) send(data *baker.Data) { |
| 213 | nlines := int64(bytes.Count(data.Bytes, []byte{'\n'})) |
| 214 | atomic.AddInt64(&s.numProcessedLines, nlines) |
| 215 | |
| 216 | s.data <- data |
| 217 | } |
| 218 | |
| 219 | // Enqueue a file for processing by compressedInput. This function must be called |
| 220 | // by subclasses to schedule processing a (gzip|zstd) logfile. |