Skip to content

Commit

Permalink
Fail explicitly when mark as recent fails (#204)
Browse files Browse the repository at this point in the history
Fix error handling when marking CIDs as recent.
  • Loading branch information
masih authored Dec 23, 2023
1 parent 7cbdaad commit 386866e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mobile/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ func (c *Client) Put(value []byte, codec int64) ([]byte, error) {
if err != nil {
return nil, err
}
c.markAsRecentCid(ctx, link.(cidlink.Link))
if err := c.markAsRecentCid(ctx, link); err != nil {
return nil, err
}
return link.(cidlink.Link).Cid.Bytes(), nil
}

Expand Down

0 comments on commit 386866e

Please sign in to comment.