Skip to content

Commit 36637fc

Browse files
committed
update
Signed-off-by: Weizhen Wang <[email protected]>
1 parent 97d98a3 commit 36637fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/planner/core/rule_collect_plan_stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func RequestLoadStats(ctx base.PlanContext, neededHistItems []model.StatsLoadIte
108108
}
109109
}
110110
})
111-
var timeout = time.Duration(syncWait * time.Millisecond.Milliseconds())
111+
var timeout = time.Duration(syncWait * time.Millisecond.Nanoseconds())
112112
stmtCtx := ctx.GetSessionVars().StmtCtx
113113
err := domain.GetDomain(ctx).StatsHandle().SendLoadRequests(stmtCtx, neededHistItems, timeout)
114114
if err != nil {

0 commit comments

Comments
 (0)