From 943197e65cc5bc9e49a599bffda19823c33a522b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 23 Jan 2020 17:11:58 +0100 Subject: [PATCH] sealing: Don't infinite-loop on fatal errors --- fsm.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fsm.go b/fsm.go index e105a328e..3d3253072 100644 --- a/fsm.go +++ b/fsm.go @@ -21,9 +21,8 @@ func (m *Sealing) Plan(events []statemachine.Event, user interface{}) (interface return func(ctx statemachine.Context, si SectorInfo) error { err := next(ctx, si) if err != nil { - if err := ctx.Send(SectorFatalError{error: err}); err != nil { - return xerrors.Errorf("error while sending error: reporting %+v: %w", err, err) - } + log.Errorf("unhandled sector error (%d): %+v", si.SectorID, err) + return nil } return nil