fix: 修复 file.ReadLineWithParallel 函数返回的偏移值不准确的问题

This commit is contained in:
kercylan98 2023-12-01 17:21:43 +08:00
parent 61b4ef7a8c
commit f3ae5a3957
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ func ReadLineWithParallel(filename string, chunkSize int64, handlerFunc func(str
defer wg.Done()
endMutex.Lock()
e := chunk[1] - chunk[0]
e := chunk[1]
if e > end {
end = e + 1
}