diff --git a/README.md b/README.md index d4a3c17..ad31e42 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ipfs/node.go b/ipfs/node.go index f9471a6..4b07226 100644 --- a/ipfs/node.go +++ b/ipfs/node.go @@ -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()))