this repo has no description
0
fork

Configure Feed

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

carstore/sqlite: use cidv1 when retrieving blocks

+7 -2
+7 -2
carstore/sqlite_store.go
··· 6 6 "database/sql" 7 7 "errors" 8 8 "fmt" 9 - "go.opentelemetry.io/otel/attribute" 10 9 "io" 11 10 "log/slog" 12 11 "os" 13 12 "path/filepath" 13 + 14 + "go.opentelemetry.io/otel/attribute" 14 15 15 16 "github.com/bluesky-social/indigo/models" 16 17 blockformat "github.com/ipfs/go-block-format" ··· 470 471 if err != nil { 471 472 return nil, fmt.Errorf("getb bad scan, %w", err) 472 473 } 473 - return blocks.NewBlock(blockb), nil 474 + blk, err := blocks.NewBlockWithCid(blockb, bcid) 475 + if err != nil { 476 + return nil, fmt.Errorf("getb bad block, %w", err) 477 + } 478 + return blk, nil 474 479 } 475 480 return nil, ErrNothingThere 476 481 }