Skip to content

Commit

Permalink
Document DAGLink.Name duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Oct 2, 2024
1 parent bfc712a commit b30a7bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/core/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ type DAGLink struct {
// Name is the name of the link.
//
// This will be either the field name of the CRDT delta or "_head" for the head link.
//
// This field currently serves no purpose and is duplicating data already held on the target
// block. However we want to have this long term to enable some fancy P2P magic to allow users
// to configure the collection to only sync particular fields using
// [GraphSync](https://github.com/ipfs/go-graphsync) which will need to make use of this property.
Name string
// Link is the CID link to the object.
cidlink.Link
Expand Down

0 comments on commit b30a7bc

Please sign in to comment.