Skip to content

Commit

Permalink
fix cleveldb Stat() (#273)
Browse files Browse the repository at this point in the history
Co-authored-by: Marko <marbar3778@yahoo.com>
  • Loading branch information
luohaha and tac0turtle authored Jul 31, 2022
1 parent fce26e6 commit 70f3529
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cleveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,10 @@ func (db *CLevelDB) Print() error {
// Stats implements DB.
func (db *CLevelDB) Stats() map[string]string {
keys := []string{
"leveldb.aliveiters",
"leveldb.alivesnaps",
"leveldb.blockpool",
"leveldb.cachedblock",
"leveldb.num-files-at-level{n}",
"leveldb.openedtables",
"leveldb.sstables",
"leveldb.stats",
"leveldb.approximate-memory-usage",
}

stats := make(map[string]string, len(keys))
Expand Down

0 comments on commit 70f3529

Please sign in to comment.