From 11fb47e152494aba8c191bf3b53088872838aea1 Mon Sep 17 00:00:00 2001 From: chunfengSun <516108736@qq.com> Date: Mon, 15 Nov 2021 12:41:00 +0800 Subject: [PATCH] Merge PR: fix rdbTx (#1194) --- libs/iavl/nodedb_oec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/iavl/nodedb_oec.go b/libs/iavl/nodedb_oec.go index 4b2dc75508..373fd50305 100644 --- a/libs/iavl/nodedb_oec.go +++ b/libs/iavl/nodedb_oec.go @@ -77,7 +77,7 @@ func (ndb *nodeDB) setHeightOrphansItem(version int64, rootHash []byte) { func (ndb *nodeDB) dbGet(k []byte) ([]byte, error) { ts := time.Now() defer func() { - ndb.addDBReadTime(time.Now().Sub(ts).Microseconds()) + ndb.addDBReadTime(time.Now().Sub(ts).Nanoseconds()) }() ndb.addDBReadCount() return ndb.db.Get(k)