Skip to content

Commit

Permalink
Merge pull request #64 from initia-labs/fix/ignore-cache-err
Browse files Browse the repository at this point in the history
ignore cache error
  • Loading branch information
SeUkKim authored Oct 31, 2024
2 parents ccff853 + b13c46d commit bf9911a
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 bf9911a

Please sign in to comment.