this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

dont use cursed car v2 (#999)

authored by

Whyrusleeping and committed by
GitHub
40f39771 8e3fa7af

+3 -3
+3 -3
repo/repo.go
··· 12 12 "github.com/bluesky-social/indigo/util" 13 13 "github.com/ipfs/go-cid" 14 14 cbor "github.com/ipfs/go-ipld-cbor" 15 - "github.com/ipld/go-car/v2" 15 + "github.com/ipld/go-car" 16 16 cbg "github.com/whyrusleeping/cbor-gen" 17 17 "go.opentelemetry.io/otel" 18 18 ) ··· 77 77 ctx, span := otel.Tracer("repo").Start(ctx, "Ingest") 78 78 defer span.End() 79 79 80 - br, err := car.NewBlockReader(r) 80 + br, err := car.NewCarReader(r) 81 81 if err != nil { 82 82 return cid.Undef, fmt.Errorf("opening CAR block reader: %w", err) 83 83 } ··· 96 96 } 97 97 } 98 98 99 - return br.Roots[0], nil 99 + return br.Header.Roots[0], nil 100 100 } 101 101 102 102 func ReadRepoFromCar(ctx context.Context, r io.Reader) (*Repo, error) {