mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
cmd, core, ethdb: fix function description
This commit is contained in:
parent
ea17320272
commit
4a21582d20
3 changed files with 6 additions and 5 deletions
|
|
@ -408,11 +408,12 @@ func checkStateContent(ctx *cli.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func showDBStats(db ethdb.KeyValueStater) {
|
func showDBStats(db ethdb.KeyValueStater) {
|
||||||
if stats, err := db.Stat(); err != nil {
|
stats, err := db.Stat()
|
||||||
|
if err != nil {
|
||||||
log.Warn("Failed to read database stats", "error", err)
|
log.Warn("Failed to read database stats", "error", err)
|
||||||
} else {
|
return
|
||||||
fmt.Println(stats)
|
|
||||||
}
|
}
|
||||||
|
fmt.Println(stats)
|
||||||
}
|
}
|
||||||
|
|
||||||
func dbStats(ctx *cli.Context) error {
|
func dbStats(ctx *cli.Context) error {
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ func (t *table) NewIterator(prefix []byte, start []byte) ethdb.Iterator {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stat returns a particular internal stat of the database.
|
// Stat returns the statistic data of the database.
|
||||||
func (t *table) Stat() (string, error) {
|
func (t *table) Stat() (string, error) {
|
||||||
return t.db.Stat()
|
return t.db.Stat()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,7 @@ func (db *Database) NewSnapshot() (ethdb.Snapshot, error) {
|
||||||
return newSnapshot(db), nil
|
return newSnapshot(db), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stat returns a particular internal stat of the database.
|
// Stat returns the statistic data of the database.
|
||||||
func (db *Database) Stat() (string, error) {
|
func (db *Database) Stat() (string, error) {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue