Skip to content

Commit

Permalink
fix: remove duplicate import
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Aug 31, 2023
1 parent e28b844 commit 1f462d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions traversal/traversal.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
_ "github.com/ipld/go-ipld-prime/codec/dagjson"
_ "github.com/ipld/go-ipld-prime/codec/json"
_ "github.com/ipld/go-ipld-prime/codec/raw"
"github.com/ipld/go-ipld-prime/traversal"

blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
Expand Down Expand Up @@ -224,9 +223,9 @@ func (cfg Config) Traverse(

progress.LastBlock.Link = cidlink.Link{Cid: cfg.Root}
var lastPath datamodel.Path
visitor := func(p traversal.Progress, n datamodel.Node, vr traversal.VisitReason) error {
visitor := func(p ipldtraversal.Progress, n datamodel.Node, vr ipldtraversal.VisitReason) error {
lastPath = p.Path
if vr == traversal.VisitReason_SelectionMatch {
if vr == ipldtraversal.VisitReason_SelectionMatch {
return unixfsnode.BytesConsumingMatcher(p, n)
}
return nil
Expand Down

0 comments on commit 1f462d7

Please sign in to comment.