An atproto PDS written in Go

fix

Changed files
+3 -2
recording_blockstore
sqlite_blockstore
+2 -1
recording_blockstore/recording_blockstore.go
··· 2 3 import ( 4 "context" 5 6 blockformat "github.com/ipfs/go-block-format" 7 "github.com/ipfs/go-cid" ··· 58 } 59 60 func (bs *RecordingBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error) { 61 - return bs.AllKeysChan(ctx) 62 } 63 64 func (bs *RecordingBlockstore) HashOnRead(enabled bool) {
··· 2 3 import ( 4 "context" 5 + "fmt" 6 7 blockformat "github.com/ipfs/go-block-format" 8 "github.com/ipfs/go-cid" ··· 59 } 60 61 func (bs *RecordingBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error) { 62 + return nil, fmt.Errorf("iteration not allowed on recording blockstore") 63 } 64 65 func (bs *RecordingBlockstore) HashOnRead(enabled bool) {
+1 -1
sqlite_blockstore/sqlite_blockstore.go
··· 129 } 130 131 func (bs *SqliteBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error) { 132 - panic("not implemented") 133 } 134 135 func (bs *SqliteBlockstore) HashOnRead(enabled bool) {
··· 129 } 130 131 func (bs *SqliteBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error) { 132 + return nil, fmt.Errorf("iteration not allowed on sqlite blockstore") 133 } 134 135 func (bs *SqliteBlockstore) HashOnRead(enabled bool) {