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
ozfive authored May 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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

0 comments on commit 105e63f

Please sign in to comment.