Skip to content

Commit

Permalink
Rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
ingar committed Jan 8, 2020
1 parent 56664ac commit b539b34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion storagemarket/impl/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func NewClient(h host.Host, bs blockstore.Blockstore, dataTransfer datatransfer.
if err != nil {
return nil, err
}
pio := pieceio.NewPieceIO(pr, carIO, sectorCalculator, fs)
pio := pieceio.NewPieceIO(pr, carIO, sectorCalculator, fs, bs)

c := &Client{
h: h,
Expand Down
2 changes: 1 addition & 1 deletion storagemarket/impl/client_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c *Client) commP(ctx context.Context, root cid.Cid) ([]byte, uint64, error
allSelector := ssb.ExploreRecursive(selector.RecursionLimitNone(),
ssb.ExploreAll(ssb.ExploreRecursiveEdge())).Node()

commp, tmpFile, err := c.pio.GeneratePieceCommitment(c.bs, root, allSelector)
commp, tmpFile, err := c.pio.GeneratePieceCommitment(root, allSelector)
if err != nil {
return nil, 0, xerrors.Errorf("generating CommP: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions storagemarket/impl/provider_states.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (p *Provider) staged(ctx context.Context, deal MinerDeal) (func(*MinerDeal)
allSelector := ssb.ExploreRecursive(selector.RecursionLimitNone(),
ssb.ExploreAll(ssb.ExploreRecursiveEdge())).Node()

commp, path, err := p.pio.GeneratePieceCommitment(deal.Ref, allSelector)
commp, file, err := p.pio.GeneratePieceCommitment(deal.Ref, allSelector)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -169,7 +169,7 @@ func (p *Provider) staged(ctx context.Context, deal MinerDeal) (func(*MinerDeal)

return func(deal *MinerDeal) {
deal.SectorID = sectorID
deal.PiecePath = path
deal.PiecePath = file.Path()
}, nil
}

Expand Down

0 comments on commit b539b34

Please sign in to comment.