Skip to content

Commit

Permalink
Merge pull request #1 from ashmckenzie/ashmckenzie/fix-writer-scanner
Browse files Browse the repository at this point in the history
Scan text in 64KB chunks
  • Loading branch information
ozfive committed May 4, 2023
2 parents 766cfec + c052ba6 commit 105e63f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ func (entry *Entry) writerScanner(reader *io.PipeReader, printFunc func(args ...
if len(data) > chunkSize {
return chunkSize, data[:chunkSize], nil
}
return 0, nil, nil

return len(data), data, nil
}

//Use the custom split function to split the input
Expand Down

0 comments on commit 105e63f

Please sign in to comment.