♻️ Replace time.Now().Sub(start) with time.Since(start) (#17401)

This commit is contained in:
Jeffrey Chen
2026-04-04 08:48:32 +08:00
committed by GitHub
parent 9b4b1d2bf0
commit 064754128b
7 changed files with 10 additions and 11 deletions

View File

@@ -194,7 +194,7 @@ func FlushQueue() {
debug.FreeOSMemory()
}
elapsed := time.Now().Sub(start).Milliseconds()
elapsed := time.Since(start).Milliseconds()
if 7000 < elapsed {
logging.LogInfof("database op tx [%dms]", elapsed)
}