Merge pull request #8168 from filecoin-project/feat/ufs-selectors
feat: market utils: Support unixfsnode in TraverseDag
This commit is contained in:
commit
7c2f653323
1
go.mod
1
go.mod
@ -100,6 +100,7 @@ require (
|
|||||||
github.com/ipfs/go-metrics-prometheus v0.0.2
|
github.com/ipfs/go-metrics-prometheus v0.0.2
|
||||||
github.com/ipfs/go-path v0.0.7
|
github.com/ipfs/go-path v0.0.7
|
||||||
github.com/ipfs/go-unixfs v0.3.1
|
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/ipfs/interface-go-ipfs-core v0.4.0
|
||||||
github.com/ipld/go-car v0.3.3
|
github.com/ipld/go-car v0.3.3
|
||||||
github.com/ipld/go-car/v2 v2.1.1
|
github.com/ipld/go-car/v2 v2.1.1
|
||||||
|
@ -11,6 +11,7 @@ import (
|
|||||||
|
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
mdagipld "github.com/ipfs/go-ipld-format"
|
mdagipld "github.com/ipfs/go-ipld-format"
|
||||||
|
"github.com/ipfs/go-unixfsnode"
|
||||||
dagpb "github.com/ipld/go-codec-dagpb"
|
dagpb "github.com/ipld/go-codec-dagpb"
|
||||||
"github.com/ipld/go-ipld-prime"
|
"github.com/ipld/go-ipld-prime"
|
||||||
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
|
cidlink "github.com/ipld/go-ipld-prime/linking/cid"
|
||||||
@ -62,6 +63,7 @@ func TraverseDag(
|
|||||||
|
|
||||||
return bytes.NewBuffer(node.RawData()), nil
|
return bytes.NewBuffer(node.RawData()), nil
|
||||||
}
|
}
|
||||||
|
unixfsnode.AddUnixFSReificationToLinkSystem(&linkSystem)
|
||||||
|
|
||||||
// this is how we pull the start node out of the DS
|
// this is how we pull the start node out of the DS
|
||||||
startLink := cidlink.Link{Cid: startFrom}
|
startLink := cidlink.Link{Cid: startFrom}
|
||||||
|
Loading…
Reference in New Issue
Block a user