first visit the cid, then short-circuit non dagcbor objects
This commit is contained in:
parent
bdb97d6186
commit
d33a44e67f
@ -891,14 +891,14 @@ func (s *SplitStore) walkLinks(c cid.Cid, walked *cid.Set, f func(cid.Cid) error
|
||||
return nil
|
||||
}
|
||||
|
||||
if c.Prefix().Codec != cid.DagCBOR {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := f(c); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if c.Prefix().Codec != cid.DagCBOR {
|
||||
return nil
|
||||
}
|
||||
|
||||
blk, err := s.Get(c)
|
||||
if err != nil {
|
||||
return xerrors.Errorf("error retrieving linked block (cid: %s): %w", c, err)
|
||||
|
Loading…
Reference in New Issue
Block a user