Update storage/wdpost_run.go

Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
Leo Cheung 2020-07-06 06:19:47 -05:00 committed by GitHub
parent 4e12c4cb69
commit ddba20ccdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ func (s *WindowPoStScheduler) checkNextRecoveries(ctx context.Context, deadline
return xerrors.Errorf("checking unrecovered sectors: %w", err)
}
// check some unrecovered sectors can not recovered (such as cache file is missing)
// if all sectors failed to recover, don't declare recoveries
sbfCount, err := sbf.Count()
if err != nil {
log.Errorf(" sbf.Count() | %v", err)