gofmt
This commit is contained in:
parent
b26906963b
commit
b83a9b902a
@ -934,7 +934,7 @@ type MarketDeal struct {
|
|||||||
|
|
||||||
type RetrievalOrder struct {
|
type RetrievalOrder struct {
|
||||||
// TODO: make this less unixfs specific
|
// TODO: make this less unixfs specific
|
||||||
Root cid.Cid
|
Root cid.Cid
|
||||||
Piece *cid.Cid
|
Piece *cid.Cid
|
||||||
DataSelector *Selector
|
DataSelector *Selector
|
||||||
Size uint64
|
Size uint64
|
||||||
|
@ -222,7 +222,7 @@ type DagSpec struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ExportRef struct {
|
type ExportRef struct {
|
||||||
Root cid.Cid
|
Root cid.Cid
|
||||||
|
|
||||||
// DAGs array specifies a list of DAGs to export
|
// DAGs array specifies a list of DAGs to export
|
||||||
// - If exporting into a car file, defines car roots
|
// - If exporting into a car file, defines car roots
|
||||||
|
@ -321,9 +321,9 @@ func (w *WrapperV1Full) clientRetrieve(ctx context.Context, order RetrievalOrder
|
|||||||
}
|
}
|
||||||
|
|
||||||
eref := api.ExportRef{
|
eref := api.ExportRef{
|
||||||
Root: order.Root,
|
Root: order.Root,
|
||||||
FromLocalCAR: order.FromLocalCAR,
|
FromLocalCAR: order.FromLocalCAR,
|
||||||
DealID: dealID,
|
DealID: dealID,
|
||||||
}
|
}
|
||||||
|
|
||||||
if order.DatamodelPathSelector != nil {
|
if order.DatamodelPathSelector != nil {
|
||||||
|
@ -31,7 +31,7 @@ var (
|
|||||||
carCommp, _ = cid.Parse("baga6ea4seaqmrivgzei3fmx5qxtppwankmtou6zvigyjaveu3z2zzwhysgzuina")
|
carCommp, _ = cid.Parse("baga6ea4seaqmrivgzei3fmx5qxtppwankmtou6zvigyjaveu3z2zzwhysgzuina")
|
||||||
carPieceSize = abi.PaddedPieceSize(2097152)
|
carPieceSize = abi.PaddedPieceSize(2097152)
|
||||||
textSelector = api.Selector("8/1/8/1/0/1/0")
|
textSelector = api.Selector("8/1/8/1/0/1/0")
|
||||||
storPowCid, _ = cid.Parse("bafkqaetgnfwc6mjpon2g64tbm5sxa33xmvza")
|
storPowCid, _ = cid.Parse("bafkqaetgnfwc6mjpon2g64tbm5sxa33xmvza")
|
||||||
textSelectorNonLink = api.Selector("8/1/8/1/0/1")
|
textSelectorNonLink = api.Selector("8/1/8/1/0/1")
|
||||||
textSelectorNonexistent = api.Selector("42")
|
textSelectorNonexistent = api.Selector("42")
|
||||||
expectedResult = "fil/1/storagepower"
|
expectedResult = "fil/1/storagepower"
|
||||||
@ -140,9 +140,9 @@ func TestPartialRetrieval(t *testing.T) {
|
|||||||
DataSelector: &textSelectorNonexistent,
|
DataSelector: &textSelectorNonexistent,
|
||||||
},
|
},
|
||||||
api.ExportRef{
|
api.ExportRef{
|
||||||
Root: carRoot,
|
Root: carRoot,
|
||||||
FromLocalCAR: sourceCar,
|
FromLocalCAR: sourceCar,
|
||||||
DAGs: []api.DagSpec{{DataSelector: &textSelectorNonexistent}},
|
DAGs: []api.DagSpec{{DataSelector: &textSelectorNonexistent}},
|
||||||
},
|
},
|
||||||
&api.FileRef{},
|
&api.FileRef{},
|
||||||
storPowCid,
|
storPowCid,
|
||||||
@ -162,9 +162,9 @@ func TestPartialRetrieval(t *testing.T) {
|
|||||||
DataSelector: &textSelectorNonLink,
|
DataSelector: &textSelectorNonLink,
|
||||||
},
|
},
|
||||||
api.ExportRef{
|
api.ExportRef{
|
||||||
Root: carRoot,
|
Root: carRoot,
|
||||||
FromLocalCAR: sourceCar,
|
FromLocalCAR: sourceCar,
|
||||||
DAGs: []api.DagSpec{{DataSelector: &textSelectorNonLink}},
|
DAGs: []api.DagSpec{{DataSelector: &textSelectorNonLink}},
|
||||||
},
|
},
|
||||||
&api.FileRef{},
|
&api.FileRef{},
|
||||||
storPowCid,
|
storPowCid,
|
||||||
|
@ -989,7 +989,7 @@ func (a *API) outputCAR(ctx context.Context, dags []dagSpec, bs bstore.Blockstor
|
|||||||
}
|
}
|
||||||
|
|
||||||
type dagSpec struct {
|
type dagSpec struct {
|
||||||
root cid.Cid
|
root cid.Cid
|
||||||
selector ipld.Node
|
selector ipld.Node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user