mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
restrict metric by 1 bucket (#1052)
This commit is contained in:
parent
279f59f950
commit
7e71c4512e
@ -50,7 +50,9 @@ func (m *TxDb) Begin() (DbWithPendingMutations, error) {
|
|||||||
|
|
||||||
func (m *TxDb) Put(bucket string, key []byte, value []byte) error {
|
func (m *TxDb) Put(bucket string, key []byte, value []byte) error {
|
||||||
if metrics.Enabled {
|
if metrics.Enabled {
|
||||||
defer dbPutTimer.UpdateSince(time.Now())
|
if bucket == dbutils.PlainStateBucket {
|
||||||
|
defer dbPutTimer.UpdateSince(time.Now())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
m.len += uint64(len(key) + len(value))
|
m.len += uint64(len(key) + len(value))
|
||||||
return m.cursors[bucket].Put(key, value)
|
return m.cursors[bucket].Put(key, value)
|
||||||
|
Loading…
Reference in New Issue
Block a user