Skip to content

Commit

Permalink
Merge pull request ipld/go-car#35 from ipld/feat/update-to-ipld-prime
Browse files Browse the repository at this point in the history
Update ipld libs

This commit was moved from ipld/go-car@fcc7bb8
  • Loading branch information
hannahhoward authored Sep 23, 2020
2 parents b02a0a3 + 238bbdf commit 7d0ad9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ipld/car/car_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func TestRoundtripSelective(t *testing.T) {

assertAddNodes(t, dserv, a, b, c, nd1, nd2, nd3)

ssb := builder.NewSelectorSpecBuilder(basicnode.Style.Any)
ssb := builder.NewSelectorSpecBuilder(basicnode.Prototype.Any)

// the graph assembled above looks as follows, in order:
// nd3 -> [c, nd2 -> [nd1 -> a, b, nd1 -> a]]
Expand Down
10 changes: 5 additions & 5 deletions ipld/car/selectivecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ func (sct *selectiveCarTraverser) loader(lnk ipld.Link, ctx ipld.LinkContext) (i

func (sct *selectiveCarTraverser) traverseBlocks() error {

nsc := dagpb.AddDagPBSupportToChooser(func(ipld.Link, ipld.LinkContext) (ipld.NodeStyle, error) {
return basicnode.Style.Any, nil
nsc := dagpb.AddDagPBSupportToChooser(func(ipld.Link, ipld.LinkContext) (ipld.NodePrototype, error) {
return basicnode.Prototype.Any, nil
})

for _, carDag := range sct.sc.dags {
Expand All @@ -243,9 +243,9 @@ func (sct *selectiveCarTraverser) traverseBlocks() error {
nd := nb.Build()
err = traversal.Progress{
Cfg: &traversal.Config{
Ctx: sct.sc.ctx,
LinkLoader: sct.loader,
LinkTargetNodeStyleChooser: nsc,
Ctx: sct.sc.ctx,
LinkLoader: sct.loader,
LinkTargetNodePrototypeChooser: nsc,
},
}.WalkAdv(nd, parsed, func(traversal.Progress, ipld.Node, traversal.VisitReason) error { return nil })
if err != nil {
Expand Down

0 comments on commit 7d0ad9d

Please sign in to comment.