Skip to content

Commit

Permalink
fixup! feat: fix get-dag and add version=1 option
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 22, 2021
1 parent e34a3dd commit 182d3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/car/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func writeCarV1(rootCid cid.Cid, output string, bs *blockstore.ReadOnly, strict
if linkVisitOnlyOnce {
opts = append(opts, car.TraverseLinksOnlyOnce())
}
sc := car.NewSelectiveCar(context.TODO(), &readStore{bs}, []car.Dag{{Root: rootCid, Selector: sel}}, opts...)
sc := car.NewSelectiveCar(context.Background(), &readStore{bs}, []car.Dag{{Root: rootCid, Selector: sel}}, opts...)
f, err := os.Create(output)
if err != nil {
return err
Expand Down

0 comments on commit 182d3a9

Please sign in to comment.