Skip to content

Commit 9974d9a

Browse files
committed
ci:trie.go
1 parent 6b0b68c commit 9974d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trie/trie.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ func init() {
3838
// the trie had since process startup. This isn't useful for anything apart from
3939
// trie debugging purposes.
4040
func CacheMisses() int64 {
41-
return cacheMissCounter.Count()
41+
return cacheMissCounter.Snapshot().Count()
4242
}
4343

4444
// CacheUnloads retrieves a global counter measuring the number of cache unloads
4545
// the trie did since process startup. This isn't useful for anything apart from
4646
// trie debugging purposes.
4747
func CacheUnloads() int64 {
48-
return cacheUnloadCounter.Count()
48+
return cacheUnloadCounter.Snapshot().Count()
4949
}
5050

5151
// LeafCallback is a callback type invoked when a trie operation reaches a leaf

0 commit comments

Comments
 (0)