GetCurrentDealInfo err: handle correctly err case

This commit is contained in:
Anton Evangelatov 2021-09-17 14:55:56 +02:00
parent 6df17bceb1
commit 34e3dc2b37

View File

@ -392,6 +392,7 @@ func (m *Sealing) HandleRecoverDealIDs(ctx Context, sector SectorInfo) error {
res, err := m.DealInfo.GetCurrentDealInfo(ctx.Context(), tok, dp, *p.DealInfo.PublishCid)
if err != nil {
failed[i] = xerrors.Errorf("getting current deal info for piece %d: %w", i, err)
continue
}
if res.MarketDeal.Proposal.PieceCID != p.Piece.PieceCID {