remove unnecessary code

This commit is contained in:
vyzo 2021-07-04 00:32:41 +03:00
parent d79e4da7aa
commit c5cf8e226b

View File

@ -948,16 +948,6 @@ func (s *SplitStore) doCompact(curTs *types.TipSet) error {
var count int64
err = s.walk(curTs, boundaryEpoch, true, s.cfg.HotHeaders,
func(c cid.Cid) error {
mark, err := markSet.Has(c)
if err != nil {
return xerrors.Errorf("error checking mark set for %s: %w", c, err)
}
if mark {
// already marked, don't recurse its links
return errStopWalk
}
count++
return markSet.Mark(c)
})