Skip to content

Commit

Permalink
ignore cache error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 committed Oct 31, 2024
1 parent ccff853 commit b13c46d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions store/cache_kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ func (c CacheStore) Set(key, value []byte) error {
func (c CacheStore) Delete(key []byte) error {
storetypes.AssertValidKey(key)

err := c.cache.Delete(string(key))
if err != nil && errors.IsOf(err, bigcache.ErrEntryNotFound) {
return errors.Wrap(err, "failed to delete cache")
}
// ignore cache error
_ = c.cache.Delete(string(key))
c.store.Delete(key)

return nil
Expand Down

0 comments on commit b13c46d

Please sign in to comment.