Skip to content

Commit

Permalink
Remove IAVL per-get/delete timing info
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Apr 29, 2024
1 parent 1407495 commit 9c0b0c8
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 9c0b0c8

Please sign in to comment.