gofmt
This commit is contained in:
parent
9e74c3c4e8
commit
5462ecf6da
10
extern/sector-storage/ffiwrapper/sealer_cgo.go
vendored
10
extern/sector-storage/ffiwrapper/sealer_cgo.go
vendored
@ -142,7 +142,10 @@ func (sb *Sealer) AddPiece(ctx context.Context, sector storage.SectorRef, existi
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
done := make(chan struct{cid.Cid; error}, 1)
|
done := make(chan struct {
|
||||||
|
cid.Cid
|
||||||
|
error
|
||||||
|
}, 1)
|
||||||
pbuf := <-throttle
|
pbuf := <-throttle
|
||||||
copy(pbuf, buf[:read])
|
copy(pbuf, buf[:read])
|
||||||
|
|
||||||
@ -152,7 +155,10 @@ func (sb *Sealer) AddPiece(ctx context.Context, sector storage.SectorRef, existi
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
c, err := sb.pieceCid(sector.ProofType, pbuf[:read])
|
c, err := sb.pieceCid(sector.ProofType, pbuf[:read])
|
||||||
done <- struct {cid.Cid; error }{c, err}
|
done <- struct {
|
||||||
|
cid.Cid
|
||||||
|
error
|
||||||
|
}{c, err}
|
||||||
}(read)
|
}(read)
|
||||||
|
|
||||||
piecePromises = append(piecePromises, func() (abi.PieceInfo, error) {
|
piecePromises = append(piecePromises, func() (abi.PieceInfo, error) {
|
||||||
|
@ -4,7 +4,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/filecoin-project/lotus/extern/storage-sealing/lib/nullreader"
|
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
@ -34,6 +33,7 @@ import (
|
|||||||
|
|
||||||
"github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper/basicfs"
|
"github.com/filecoin-project/lotus/extern/sector-storage/ffiwrapper/basicfs"
|
||||||
"github.com/filecoin-project/lotus/extern/sector-storage/storiface"
|
"github.com/filecoin-project/lotus/extern/sector-storage/storiface"
|
||||||
|
"github.com/filecoin-project/lotus/extern/storage-sealing/lib/nullreader"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user