deals: gofmt

This commit is contained in:
Łukasz Magiera 2019-10-29 13:02:24 +01:00
parent bee0ecf97f
commit be4a5665fe
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ func (p *Provider) accept(ctx context.Context, deal MinerDeal) (func(*MinerDeal)
// TODO: check StorageCollateral
// TODO:
minPrice := types.BigDiv(types.BigMul(p.ask.Ask.Price, types.NewInt(deal.Proposal.PieceSize)), types.NewInt(1 << 30))
minPrice := types.BigDiv(types.BigMul(p.ask.Ask.Price, types.NewInt(deal.Proposal.PieceSize)), types.NewInt(1<<30))
if deal.Proposal.StoragePricePerEpoch.LessThan(minPrice) {
return nil, xerrors.Errorf("storage price per epoch less than asking price: %s < %s", deal.Proposal.StoragePricePerEpoch, minPrice)
}

View File

@ -17,7 +17,7 @@ type SignedStorageAsk struct {
type StorageAsk struct {
// Price per GiB / Epoch
Price BigInt
Price BigInt
MinPieceSize uint64
Miner address.Address