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 committed May 10, 2024
1 parent b7001a5 commit 7197f45
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 @@ -207,7 +207,6 @@ func (st *Store) Set(key, value []byte) {

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

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

// Implements types.KVStore.
func (st *Store) Delete(key []byte) {
defer st.metrics.MeasureSince("store", "iavl", "delete")
_, _, err := st.tree.Remove(key)
if err != nil {
panic(err)
Expand Down

0 comments on commit 7197f45

Please sign in to comment.