From f3ae5a3957b0984bf345077f699ff9aaf58c3763 Mon Sep 17 00:00:00 2001 From: kercylan98 Date: Fri, 1 Dec 2023 17:21:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20file.ReadLineWithPa?= =?UTF-8?q?rallel=20=E5=87=BD=E6=95=B0=E8=BF=94=E5=9B=9E=E7=9A=84=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E5=80=BC=E4=B8=8D=E5=87=86=E7=A1=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/file/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/file/file.go b/utils/file/file.go index 879ccb4..90b84c5 100644 --- a/utils/file/file.go +++ b/utils/file/file.go @@ -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 }