Merge pull request #1 from ashmckenzie/ashmckenzie/fix-writer-scanner

Scan text in 64KB chunks
This commit is contained in:
Christopher Straight 2023-05-03 19:19:17 -07:00 committed by GitHub
commit 105e63f86c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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