+4
-4
util/readrecordbs.go
+4
-4
util/readrecordbs.go
···
52
52
}
53
53
54
54
func (bs *LoggingBstore) DeleteBlock(ctx context.Context, c cid.Cid) error {
55
-
return fmt.Errorf("deletes not allowed on read-record blockstore")
55
+
return fmt.Errorf("deletes not allowed on logging blockstore")
56
56
}
57
57
58
58
func (bs *LoggingBstore) Put(context.Context, blockformat.Block) error {
59
-
return fmt.Errorf("writes not allowed on read-record blockstore")
59
+
return fmt.Errorf("writes not allowed on logging blockstore")
60
60
}
61
61
62
62
func (bs *LoggingBstore) PutMany(context.Context, []blockformat.Block) error {
63
-
return fmt.Errorf("writes not allowed on read-record blockstore")
63
+
return fmt.Errorf("writes not allowed on logging blockstore")
64
64
}
65
65
66
66
func (bs *LoggingBstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error) {
67
-
return nil, fmt.Errorf("iteration not supported on read-record blockstore")
67
+
return nil, fmt.Errorf("iteration not allowed on logging blockstore")
68
68
}
69
69
70
70
func (bs *LoggingBstore) HashOnRead(enabled bool) {