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
|
||||
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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user