From 94555ea8c103c5750f100223136d38467df83821 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Wed, 22 Apr 2020 12:04:03 -0700 Subject: [PATCH] delete block should delete from cache too --- lib/cachebs/cachebs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cachebs/cachebs.go b/lib/cachebs/cachebs.go index 2c00afff2..11152e7c5 100644 --- a/lib/cachebs/cachebs.go +++ b/lib/cachebs/cachebs.go @@ -36,6 +36,8 @@ func (bs *CacheBS) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error) { } func (bs *CacheBS) DeleteBlock(c cid.Cid) error { + bs.cache.Remove(c) + return bs.bs.DeleteBlock(c) }