Skip to content

Commit

Permalink
Remove IAVL per-get/delete timing info (#603)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Tucker <[email protected]>
  • Loading branch information
ValarDragon and czarcas7ic authored Apr 29, 2024
1 parent f2dfbee commit e8c4bae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions store/iavl/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ func (st *Store) Set(key, value []byte) {

// Implements types.KVStore.
func (st *Store) Get(key []byte) []byte {
defer telemetry.MeasureSince(time.Now(), "store", "iavl", "get")
value, err := st.tree.Get(key)
if err != nil {
panic(err)
Expand All @@ -214,7 +213,6 @@ func (st *Store) Get(key []byte) []byte {

// Implements types.KVStore.
func (st *Store) Has(key []byte) (exists bool) {
defer telemetry.MeasureSince(time.Now(), "store", "iavl", "has")
has, err := st.tree.Has(key)
if err != nil {
panic(err)
Expand All @@ -224,7 +222,6 @@ func (st *Store) Has(key []byte) (exists bool) {

// Implements types.KVStore.
func (st *Store) Delete(key []byte) {
defer telemetry.MeasureSince(time.Now(), "store", "iavl", "delete")
st.tree.Remove(key)
}

Expand Down

0 comments on commit e8c4bae

Please sign in to comment.