this repo has no description
0
fork

Configure Feed

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

use tinyblockstore in repo ingest path (#998)

authored by

Whyrusleeping and committed by
GitHub
8e3fa7af 4873acee

+2 -3
+2 -3
repo/repo.go
··· 6 6 "fmt" 7 7 "io" 8 8 9 + "github.com/bluesky-social/indigo/atproto/repo" 9 10 lexutil "github.com/bluesky-social/indigo/lex/util" 10 11 "github.com/bluesky-social/indigo/mst" 11 12 "github.com/bluesky-social/indigo/util" 12 13 "github.com/ipfs/go-cid" 13 - "github.com/ipfs/go-datastore" 14 - blockstore "github.com/ipfs/go-ipfs-blockstore" 15 14 cbor "github.com/ipfs/go-ipld-cbor" 16 15 "github.com/ipld/go-car/v2" 17 16 cbg "github.com/whyrusleeping/cbor-gen" ··· 101 100 } 102 101 103 102 func ReadRepoFromCar(ctx context.Context, r io.Reader) (*Repo, error) { 104 - bs := blockstore.NewBlockstore(datastore.NewMapDatastore()) 103 + bs := repo.NewTinyBlockstore() 105 104 root, err := IngestRepo(ctx, bs, r) 106 105 if err != nil { 107 106 return nil, fmt.Errorf("ReadRepoFromCar:IngestRepo: %w", err)