review: Cleanup some comments

Co-authored-by: Peter Rabbitson <ribasushi@protocol.ai>
This commit is contained in:
Łukasz Magiera 2021-11-29 21:29:00 +01:00 committed by GitHub
parent 4d51980cb5
commit d019853687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -215,8 +215,10 @@ type DagSpec struct {
// - the matched graph must have a single root
DataSelector *Selector
// ExportMerkleProof matches the path traversal when DataSelector is a textselector.
// Ignored when DataSelector is a json selector and in non-car retrieval
// ExportMerkleProof is applicable only when exporting to a CAR file via a path textselector
// When true, in addition to the selection target, the resulting CAR will contain every block along the
// path back to, and including the original root
// When false the resulting CAR contains only the blocks of the target subdag
ExportMerkleProof bool
}

View File

@ -780,8 +780,6 @@ func getDataSelector(dps *api.Selector, matchPath bool) (datamodel.Node, error)
selspec, err := textselector.SelectorSpecFromPath(
textselector.Expression(*dps), matchPath,
// URGH - this is a direct copy from https://github.com/filecoin-project/go-fil-markets/blob/v1.12.0/shared/selectors.go#L10-L16
// Unable to use it because we need the SelectorSpec, and markets exposes just a reified node
ssb.ExploreRecursive(
selector.RecursionLimitNone(),
ssb.ExploreUnion(ssb.Matcher(), ssb.ExploreAll(ssb.ExploreRecursiveEdge())),