GetCurrentDealInfo err: handle correctly err case

This commit is contained in:
Anton Evangelatov 2021-09-17 14:55:56 +02:00 committed by Jennifer Wang
parent 8e45d27a06
commit bf9d0bca40

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) res, err := m.DealInfo.GetCurrentDealInfo(ctx.Context(), tok, dp, *p.DealInfo.PublishCid)
if err != nil { if err != nil {
failed[i] = xerrors.Errorf("getting current deal info for piece %d: %w", i, err) failed[i] = xerrors.Errorf("getting current deal info for piece %d: %w", i, err)
continue
} }
if res.MarketDeal == nil { if res.MarketDeal == nil {