review: Cleanup some comments
Co-authored-by: Peter Rabbitson <ribasushi@protocol.ai>
This commit is contained in:
parent
4d51980cb5
commit
d019853687
@ -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
|
||||
}
|
||||
|
||||
|
@ -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())),
|
||||
|
Loading…
Reference in New Issue
Block a user