mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-06-28 06:46:12 +00:00
♻️ kernel/sql/queue_history: refactor time.Now().Sub with time.Since (#17277)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user