mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +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 {
|
||||
if metrics.Enabled {
|
||||
defer dbPutTimer.UpdateSince(time.Now())
|
||||
if bucket == dbutils.PlainStateBucket {
|
||||
defer dbPutTimer.UpdateSince(time.Now())
|
||||
}
|
||||
}
|
||||
m.len += uint64(len(key) + len(value))
|
||||
return m.cursors[bucket].Put(key, value)
|
||||
|
Loading…
Reference in New Issue
Block a user