Skip to content

Commit

Permalink
Merge pull request #13 from lovoo/tolerate-empty-tailers
Browse files Browse the repository at this point in the history
Tailer now supports empty messages
  • Loading branch information
juandes authored Sep 21, 2020
2 parents 259e256 + 91e493f commit a399236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tailer/tailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (t *Tailer) IterateReverse(maxOffset int64, visit TailerVisiter) error {
defer t.m.RUnlock()

if t.numItems == 0 {
return fmt.Errorf("kafka topic does not have msg")
return nil
}

numIterations := t.numItems
Expand Down

0 comments on commit a399236

Please sign in to comment.