Better error checks

This commit is contained in:
whyrusleeping 2019-12-04 14:14:50 -08:00
parent d4004bf7c9
commit 5133c357dc

View File

@ -109,7 +109,11 @@ func (m *Miner) Run(ctx context.Context) error {
}
go fps.run(ctx)
go m.sectorStateLoop(ctx)
if err := m.sectorStateLoop(ctx); err != nil {
log.Error(err)
return xerrors.Errorf("failed to startup sector state loop: %w", err)
}
return nil
}