Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
fix on parse csv error (#24)
Browse files Browse the repository at this point in the history
 Even if the reader.Read() returns an error it also returns the slice of strings, so we've to continue the sequence.

With this change all the tests are green again.
  • Loading branch information
danicaceres1998 authored Nov 24, 2023
1 parent d448e96 commit 9e73d1d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/pgreplay/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func ParseCsvLog(csvlog io.Reader) (items chan Item, errs chan error, done chan
if err != nil {
logLinesErrorTotal.Inc()
errs <- err
continue
}

item, err := ParseCsvItem(logline, unbounds, parsebuffer)
Expand Down

0 comments on commit 9e73d1d

Please sign in to comment.