delete block should delete from cache too
This commit is contained in:
parent
cc233c6956
commit
94555ea8c1
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user