retrieval: gofmt
This commit is contained in:
parent
d8bcb37f9f
commit
c437b6884d
@ -135,7 +135,7 @@ func (h *Handler) sealing(ctx context.Context, deal MinerDeal) (func(*MinerDeal)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: don't hardcode unixfs
|
// TODO: don't hardcode unixfs
|
||||||
ip, err := getInclusionProof(string(sectorblocks.SerializationUnixfs0) + deal.Ref.String(), status)
|
ip, err := getInclusionProof(string(sectorblocks.SerializationUnixfs0)+deal.Ref.String(), status)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ func (c *Client) RetrieveUnixfs(ctx context.Context, root cid.Cid, size uint64,
|
|||||||
verifier: &UnixFs0Verifier{Root: root},
|
verifier: &UnixFs0Verifier{Root: root},
|
||||||
}
|
}
|
||||||
|
|
||||||
for cst.offset != size + initialOffset {
|
for cst.offset != size+initialOffset {
|
||||||
toFetch := cst.windowSize
|
toFetch := cst.windowSize
|
||||||
if toFetch+cst.offset > size {
|
if toFetch+cst.offset > size {
|
||||||
toFetch = size - cst.offset
|
toFetch = size - cst.offset
|
||||||
|
Loading…
Reference in New Issue
Block a user