Update storage/wdpost_run.go
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
parent
ddba20ccdf
commit
874cb46cb3
@ -154,9 +154,11 @@ func (s *WindowPoStScheduler) checkNextRecoveries(ctx context.Context, deadline
|
||||
// if all sectors failed to recover, don't declare recoveries
|
||||
sbfCount, err := sbf.Count()
|
||||
if err != nil {
|
||||
log.Errorf(" sbf.Count() | %v", err)
|
||||
} else if sbfCount == 0 {
|
||||
log.Warnf("unrecovered exists sbf.Count() sectors can not recovery, exit this function.", err)
|
||||
return xerrors.Errorf("counting recovered sectors: %w", err)
|
||||
}
|
||||
|
||||
if sbfCount == 0 {
|
||||
log.Warnw("No recoveries to declare", "deadline", deadline, "faulty", uc)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user