Skip to content

Commit 6d1ca89

Browse files
committed
fix: make lint happy
Signed-off-by: 0xPoe <techregister@pm.me>
1 parent 3239183 commit 6d1ca89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/executor/infoschema_reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2626,7 +2626,7 @@ func getRemainDurationForAnalyzeStatusHelper(
26262626
remainingDuration := time.Duration(0)
26272627
if startTimeUTC != nil {
26282628
// time.Time.Sub uses the actual instant.
2629-
duration := time.Now().Sub(*startTimeUTC)
2629+
duration := time.Since(*startTimeUTC)
26302630
if intest.InTest {
26312631
if val := ctx.Value(AnalyzeProgressTest); val != nil {
26322632
remainingDuration, percentage = calRemainInfoForAnalyzeStatus(ctx, int64(totalCnt), processedRows, duration)

0 commit comments

Comments
 (0)