retrieval: gofmt

This commit is contained in:
Łukasz Magiera
2019-08-29 17:51:52 +02:00
parent d8bcb37f9f
commit c437b6884d
3 changed files with 4 additions and 4 deletions
+1 -1
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
}
+1 -1
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
+2 -2
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
}