From f82a262ffec41b486dbf00b5c3d349ec1fc6a975 Mon Sep 17 00:00:00 2001 From: pefish Date: Wed, 29 Dec 2021 17:37:37 +0800 Subject: [PATCH] Update wdpost_run.go --- storage/wdpost_run.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/storage/wdpost_run.go b/storage/wdpost_run.go index 038ed3ac7..83802a7f3 100644 --- a/storage/wdpost_run.go +++ b/storage/wdpost_run.go @@ -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()) }