retrieval: gofmt

This commit is contained in:
Łukasz Magiera 2019-08-29 01:01:38 +02:00
parent d8bcb37f9f
commit c437b6884d
3 changed files with 4 additions and 4 deletions

View File

@ -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
} }

View File

@ -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