mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/shed: correctly name DB.writebatch counter
This commit is contained in:
parent
abc01688f4
commit
56a2ab76c2
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ func (db *DB) NewIterator() iterator.Iterator {
|
|||
|
||||
// WriteBatch wraps LevelDB Write method to increment metrics counter.
|
||||
func (db *DB) WriteBatch(batch *leveldb.Batch) error {
|
||||
metrics.GetOrRegisterCounter("DB.write", nil).Inc(1)
|
||||
metrics.GetOrRegisterCounter("DB.writebatch", nil).Inc(1)
|
||||
|
||||
return db.ldb.Write(batch, nil)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue