diff --git a/utils/file/file.go b/utils/file/file.go index 90b84c5..8cfe94c 100644 --- a/utils/file/file.go +++ b/utils/file/file.go @@ -2,6 +2,7 @@ package file import ( "bufio" + "fmt" "github.com/kercylan98/minotaur/utils/slice" "io" "os" @@ -186,7 +187,8 @@ func ReadLineWithParallel(filename string, chunkSize int64, handlerFunc func(str end = e + 1 } endMutex.Unlock() - r := io.NewSectionReader(file, chunk[0], e) + r := io.NewSectionReader(file, chunk[0], e-chunk[0]) + fmt.Println(chunk[0], e) scanner := bufio.NewScanner(r) for scanner.Scan() {