Skip to content

Commit

Permalink
fix error logs again
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Nov 8, 2023
1 parent bb835a1 commit bcef4e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/readrecordbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ func (bs *LoggingBstore) GetSize(ctx context.Context, c cid.Cid) (int, error) {
}

func (bs *LoggingBstore) DeleteBlock(ctx context.Context, c cid.Cid) error {
return fmt.Errorf("deletes not allowed on read-record blockstore")
return fmt.Errorf("deletes not allowed on logging blockstore")
}

func (bs *LoggingBstore) Put(context.Context, blockformat.Block) error {
return fmt.Errorf("writes not allowed on read-record blockstore")
return fmt.Errorf("writes not allowed on logging blockstore")
}

func (bs *LoggingBstore) PutMany(context.Context, []blockformat.Block) error {
return fmt.Errorf("writes not allowed on read-record blockstore")
return fmt.Errorf("writes not allowed on logging blockstore")
}

func (bs *LoggingBstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error) {
return nil, fmt.Errorf("iteration not supported on read-record blockstore")
return nil, fmt.Errorf("iteration not allowed on logging blockstore")
}

func (bs *LoggingBstore) HashOnRead(enabled bool) {
Expand Down

0 comments on commit bcef4e2

Please sign in to comment.