From be0d69805965d4953b7223453cc62887a78eaec7 Mon Sep 17 00:00:00 2001 From: DarianShawn Date: Mon, 13 Mar 2023 10:59:13 +0800 Subject: [PATCH] Fix lint --- state/snapshot/snapshot.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/state/snapshot/snapshot.go b/state/snapshot/snapshot.go index 428601cdab..df946f6b7f 100644 --- a/state/snapshot/snapshot.go +++ b/state/snapshot/snapshot.go @@ -618,6 +618,7 @@ func diffToDisk(bottom *diffLayer) *diskLayer { // collect metrics metrics.CounterInc(base.snapmetrics.flushAccountItemCount) + // whole data count cleanAccountWriteSize += int64(len(data)) flushAccountSize += int64(len(data)) @@ -670,6 +671,7 @@ func diffToDisk(bottom *diffLayer) *diskLayer { // collection metrics metrics.CounterInc(base.snapmetrics.flushStorageItemCount) + // whole data count flushStorageSize += int64(len(data)) } }