Skip to content

Commit

Permalink
Merge pull request #8168 from filecoin-project/feat/ufs-selectors
Browse files Browse the repository at this point in the history
feat: market utils: Support unixfsnode in TraverseDag
  • Loading branch information
magik6k authored Feb 23, 2022
2 parents ba65d1e + a05a462 commit 7c2f653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ require (
github.com/ipfs/go-metrics-prometheus v0.0.2
github.com/ipfs/go-path v0.0.7
github.com/ipfs/go-unixfs v0.3.1
github.com/ipfs/go-unixfsnode v1.2.0
github.com/ipfs/interface-go-ipfs-core v0.4.0
github.com/ipld/go-car v0.3.3
github.com/ipld/go-car/v2 v2.1.1
Expand Down
2 changes: 2 additions & 0 deletions markets/utils/selectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/ipfs/go-cid"
mdagipld "github.com/ipfs/go-ipld-format"
"github.com/ipfs/go-unixfsnode"
dagpb "github.com/ipld/go-codec-dagpb"
"github.com/ipld/go-ipld-prime"
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
Expand Down Expand Up @@ -62,6 +63,7 @@ func TraverseDag(

return bytes.NewBuffer(node.RawData()), nil
}
unixfsnode.AddUnixFSReificationToLinkSystem(&linkSystem)

// this is how we pull the start node out of the DS
startLink := cidlink.Link{Cid: startFrom}
Expand Down

0 comments on commit 7c2f653

Please sign in to comment.