Skip to content

Commit

Permalink
debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Nov 13, 2020
1 parent a741335 commit c383524
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/blockstore/cache_freecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (c *FreecacheCachingBlockstore) View(cid cid.Cid, callback func([]byte) err
})
if err == ErrNotFound {
// inform the has cache that the item does not exist.
_ = c.existsCache.Set(k, HasFalseVal, 0)
// _ = c.existsCache.Set(k, HasFalseVal, 0)
}
return err
}
Expand All @@ -139,7 +139,7 @@ func (c *FreecacheCachingBlockstore) Get(cid cid.Cid) (blocks.Block, error) {
if err != nil {
if err == ErrNotFound {
// inform the has cache that the item does not exist.
_ = c.existsCache.Set(k, HasFalseVal, 0)
// _ = c.existsCache.Set(k, HasFalseVal, 0)
}
return res, err
}
Expand All @@ -159,7 +159,7 @@ func (c *FreecacheCachingBlockstore) GetSize(cid cid.Cid) (int, error) {
if err != nil {
if err == ErrNotFound {
// inform the exists cache that the item does not exist.
_ = c.existsCache.Set(k, HasFalseVal, 0)
// _ = c.existsCache.Set(k, HasFalseVal, 0)
}
return res, err
}
Expand All @@ -179,7 +179,7 @@ func (c *FreecacheCachingBlockstore) Has(cid cid.Cid) (bool, error) {
if has {
_ = c.existsCache.Set(k, HasTrueVal, 0)
} else {
_ = c.existsCache.Set(k, HasFalseVal, 0)
// _ = c.existsCache.Set(k, HasFalseVal, 0)
}
return has, err
}
Expand Down Expand Up @@ -235,7 +235,7 @@ func (c *FreecacheCachingBlockstore) DeleteBlock(cid cid.Cid) error {
return err
}
c.blockCache.Del(k)
_ = c.existsCache.Set(k, HasFalseVal, 0)
// _ = c.existsCache.Set(k, HasFalseVal, 0)
return err
}

Expand Down

0 comments on commit c383524

Please sign in to comment.