Skip to content

Commit

Permalink
clarify the relation between StoreIdentityCIDs and SetFullyIndexed
Browse files Browse the repository at this point in the history
I had to read the code to remind myself if this was the case.
Document it, for the sake of other godoc readers.
  • Loading branch information
mvdan committed Sep 27, 2021
1 parent f35d88c commit 999f74f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions v2/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func UseIndexCodec(c multicodec.Code) Option {

// StoreIdentityCIDs sets whether to persist sections that are referenced by
// CIDs with multihash.IDENTITY digest.
// When writing CAR files with this option,
// Characteristics.IsFullyIndexed will be set.
//
// This option is disabled by default.
func StoreIdentityCIDs(b bool) Option {
return func(o *Options) {
Expand Down

0 comments on commit 999f74f

Please sign in to comment.