From 67b441838bd5caf78a37860f50901a2c8c2067c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 23 Jan 2020 16:47:33 +0100 Subject: [PATCH] sealing: Actually call handleSealFailed --- storage/sealing/fsm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/sealing/fsm.go b/storage/sealing/fsm.go index d6bd4160e..e105a328e 100644 --- a/storage/sealing/fsm.go +++ b/storage/sealing/fsm.go @@ -88,7 +88,7 @@ func (m *Sealing) plan(events []statemachine.Event, state *SectorInfo) (func(sta p := fsmPlanners[state.State] if p == nil { - return nil, xerrors.Errorf("planner for state %s not found", state.State, api.SectorStates[state.State]) + return nil, xerrors.Errorf("planner for state %s not found", api.SectorStates[state.State]) } if err := p(events, state); err != nil { @@ -152,7 +152,7 @@ func (m *Sealing) plan(events []statemachine.Event, state *SectorInfo) (func(sta // Handled failure modes case api.SealFailed: - log.Warnf("sector %d entered unimplemented state 'SealFailed'", state.SectorID) + return m.handleSealFailed, nil case api.PreCommitFailed: log.Warnf("sector %d entered unimplemented state 'PreCommitFailed'", state.SectorID) case api.SealCommitFailed: