From b13c46d6e82fafcc6f1878fba7a12583b64aee7c Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Thu, 31 Oct 2024 13:12:48 +0900 Subject: [PATCH] ignore cache error --- store/cache_kvstore.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/store/cache_kvstore.go b/store/cache_kvstore.go index 755ecdb..9cfb530 100644 --- a/store/cache_kvstore.go +++ b/store/cache_kvstore.go @@ -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