Skip to content

Commit

Permalink
ipfs: fix unhandled err
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Jul 6, 2024
1 parent ddbb0e1 commit 79dca13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fsd is an IPFS node created by the Sia Foundation. It has optimizations specific
*This is currently a technology preview*

### TODO
- [] Add IPNS support
- Add IPNS support

## Configuration

Expand Down
2 changes: 1 addition & 1 deletion ipfs/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (n *Node) PinCAR(ctx context.Context, r io.Reader) error {
}

for block, err := cr.Next(); err != io.EOF; block, err = cr.Next() {
if n.blockService.AddBlock(ctx, block); err != nil {
if err := n.blockService.AddBlock(ctx, block); err != nil {
return fmt.Errorf("failed to add block %q: %w", block.Cid(), err)
}
log.Debug("added block", zap.Stringer("cid", block.Cid()))
Expand Down

0 comments on commit 79dca13

Please sign in to comment.