@cryptotaxi247 / kubo / commits / bf7c5b303

Fix bug in arccache.DeleteBlock() method.

License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>

Kevin Atkinson committed Aug 16, 2016 at 19:26 UTC bf7c5b303770674fbd6731e94bb1c549f68687ca
1 file changed +1 -1
blocks/blockstore/arc_cache.go
+1 -1
@@ -32,7 +32,7 @@ func (b *arccache) DeleteBlock(k key.Key) error {
32 switch err {
33 case nil, ds.ErrNotFound, ErrNotFound:
34 b.arc.Add(k, false)
35 - return nil
35 + return err
36 default:
37 return err
38 }