Skip to content

Commit ef79890

Browse files
rjl493456442holiman
authored andcommitted
core/state/snapshot: fix metrics
1 parent f549b74 commit ef79890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/state/snapshot/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,10 @@ func (dl *diskLayer) genRange(root common.Hash, prefix []byte, kind string, orig
475475
// Update metrics for counting trie iteration
476476
if kind == "storage" {
477477
storageTrieRead += time.Since(start) - internal
478-
snapStorageSnapReadTimer.Update(int64(storageTrieRead))
478+
snapStorageTrieReadTimer.Update(int64(storageTrieRead))
479479
} else {
480480
accountTrieRead += time.Since(start) - internal
481-
snapAccountSnapReadTimer.Update(int64(accountTrieRead))
481+
snapAccountTrieReadTimer.Update(int64(accountTrieRead))
482482
}
483483
logger.Debug("Regenerated state range", "root", root, "last", hexutil.Encode(last),
484484
"count", count, "created", created, "updated", updated, "untouched", untouched, "deleted", deleted)

0 commit comments

Comments
 (0)