Skip to content

Commit

Permalink
Update wdpost_run.go
Browse files Browse the repository at this point in the history
  • Loading branch information
pefish authored Dec 29, 2021
1 parent 921fda9 commit f82a262
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions storage/wdpost_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,10 @@ func (s *WindowPoStScheduler) runSubmitPoST(
post.ChainCommitRand = commRand

// Submit PoST
sm, submitErr := s.submitPoStMessage(ctx, post)
if submitErr != nil {
log.Errorf("submit window post failed: %+v", submitErr)
sm, err := s.submitPoStMessage(ctx, post)
if err != nil {
log.Errorf("submit window post failed: %+v", err)
submitErr = err
} else {
s.recordProofsEvent(post.Partitions, sm.Cid())
}
Expand Down

0 comments on commit f82a262

Please sign in to comment.