delete block should delete from cache too

This commit is contained in:
Jeromy 2020-04-22 12:04:03 -07:00
parent cc233c6956
commit 94555ea8c1

View File

@ -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)
}