Skip to content

Commit

Permalink
sealing: fix lint/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Aug 9, 2022
1 parent 71dacb5 commit a4a50fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion storage/pipeline/precommit_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/filecoin-project/lotus/chain/actors/builtin"
"github.com/filecoin-project/lotus/chain/actors/policy"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/node/modules/dtypes"
pipeline "github.com/filecoin-project/lotus/storage/pipeline"
"github.com/filecoin-project/lotus/storage/pipeline/sealiface"
)
Expand All @@ -30,7 +31,7 @@ type fakeConfigStub struct {
CCSectorLifetime time.Duration
}

func fakeConfigGetter(stub *fakeConfigStub) pipeline.GetSealingConfigFunc {
func fakeConfigGetter(stub *fakeConfigStub) dtypes.GetSealingConfigFunc {
return func() (sealiface.Config, error) {
if stub == nil {
return sealiface.Config{}, nil
Expand Down
8 changes: 2 additions & 6 deletions storage/pipeline/sealing.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,10 @@ func New(mctx context.Context, api SealingAPI, fc config.MinerFeeConfig, events
return s
}

func (m *Sealing) Run(ctx context.Context) error {

func (m *Sealing) Run(ctx context.Context) {
if err := m.restartSectors(ctx); err != nil {
log.Errorf("%+v", err)
return xerrors.Errorf("failed load sector states: %w", err)
log.Errorf("failed load sector states: %+v", err)
}

return nil
}

func (m *Sealing) Stop(ctx context.Context) error {
Expand Down

0 comments on commit a4a50fb

Please sign in to comment.