Parallel-NDJSON-Reader
Parallel-NDJSON-Reader copied to clipboard
Wrong total read bytes in chunk
trafficstars
You need to change count of reading bytes in chunk because some time len(str) != len(str in bytes)
So you need to change line
total_len += len(line)
to
total_len += len(line.encode())