From 1510ec130f0bb233d7f50fb7667246fde5a443de Mon Sep 17 00:00:00 2001 From: lance6716 Date: Sun, 18 Feb 2024 15:56:06 +0800 Subject: [PATCH] fix lint Signed-off-by: lance6716 --- pkg/executor/importer/chunk_process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/executor/importer/chunk_process.go b/pkg/executor/importer/chunk_process.go index b456472a27d0b..609e010dc9d19 100644 --- a/pkg/executor/importer/chunk_process.go +++ b/pkg/executor/importer/chunk_process.go @@ -61,7 +61,7 @@ type encodeReaderFn func(ctx context.Context) (data rowToEncode, closed bool, er // parserEncodeReader wraps a mydump.Parser as a encodeReaderFn. func parserEncodeReader(parser mydump.Parser, endOffset int64, filename string) encodeReaderFn { - return func(ctx context.Context) (data rowToEncode, closed bool, err error) { + return func(context.Context) (data rowToEncode, closed bool, err error) { readPos, _ := parser.Pos() if readPos >= endOffset { closed = true