log error

This commit is contained in:
Aarsh Shah 2020-09-14 12:04:50 +05:30
parent eabdf74946
commit 6c61ff0e9e

View File

@ -108,6 +108,7 @@ func (n *ProviderNodeAdapter) OnDealComplete(ctx context.Context, deal storagema
curTime := time.Now() curTime := time.Now()
for time.Since(curTime) < addPieceRetryTimeout { for time.Since(curTime) < addPieceRetryTimeout {
if !xerrors.Is(err, sealing.ErrTooManySectorsSealing) { if !xerrors.Is(err, sealing.ErrTooManySectorsSealing) {
log.Errorf("failed to addPiece for deal %d, err: %w", deal.DealID, err)
break break
} }
select { select {