Update storage/wdpost_run.go

Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
Leo CheungandŁukasz Magiera authored and GitHub committed 2020-07-06 06:19:47 -05:00
1 parent 4e12c4cb69
commit ddba20ccdf
1 file changed
+1 -1
+1 -1
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)