Sitelet https://github.com/Fantom-foundation/go-opera/commit/e2470f6c708f3857f9bd60908ea213699fd97c54
Skip to content

Commit e2470f6

Browse files
committed
update method name for more relevant with multidb
1 parent 72b163b commit e2470f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎cmd/opera/launcher/dbcmd.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func compact(ctx *cli.Context) error {
136136
}
137137

138138
log.Info("Stats before compaction", "db", humanName)
139-
showLeveldbStats(db)
139+
showDbStats(db)
140140

141141
log.Info("Triggering compaction", "db", humanName)
142142
for b := byte(0); b < 255; b++ {
@@ -148,14 +148,14 @@ func compact(ctx *cli.Context) error {
148148
}
149149

150150
log.Info("Stats after compaction", "db", humanName)
151-
showLeveldbStats(db)
151+
showDbStats(db)
152152
}
153153
}
154154

155155
return nil
156156
}
157157

158-
func showLeveldbStats(db ethdb.Stater) {
158+
func showDbStats(db ethdb.Stater) {
159159
if stats, err := db.Stat("stats"); err != nil {
160160
log.Warn("Failed to read database stats", "error", err)
161161
} else {

0 commit comments

Comments
 (0)