From 322477e2828d64b6f5503fb41ffab10dfed5b8b6 Mon Sep 17 00:00:00 2001 From: iliya <68940374+12ya@users.noreply.github.com> Date: Sat, 21 Mar 2026 12:27:47 +0900 Subject: [PATCH] :recycle: kernel/sql/queue_history: refactor time.Now().Sub with time.Since (#17277) --- kernel/sql/queue_history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sql/queue_history.go b/kernel/sql/queue_history.go index a9871fc63..a19166bb2 100644 --- a/kernel/sql/queue_history.go +++ b/kernel/sql/queue_history.go @@ -113,7 +113,7 @@ func FlushHistoryQueue() { debug.FreeOSMemory() } - elapsed := time.Now().Sub(start).Milliseconds() + elapsed := time.Since(start).Milliseconds() if 7000 < elapsed { logging.LogInfof("database history op tx [%dms]", elapsed) }