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
ip, err := getInclusionProof(string(sectorblocks.SerializationUnixfs0) + deal.Ref.String(), status)
ip, err := getInclusionProof(string(sectorblocks.SerializationUnixfs0)+deal.Ref.String(), status)
if err != nil {
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},
}
for cst.offset != size + initialOffset {
for cst.offset != size+initialOffset {
toFetch := cst.windowSize
if toFetch+cst.offset > size {
toFetch = size - cst.offset

View File

@ -73,12 +73,12 @@ func (m *Miner) HandleQueryStream(stream network.Stream) {
}
type handlerDeal struct {
m *Miner
m *Miner
stream network.Stream
ufsr sectorblocks.UnixfsReader
open cid.Cid
at uint64
at uint64
size uint64
}