wip
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/filecoin-project/lotus/lib/harmony/harmonydb"
|
||||
"github.com/filecoin-project/lotus/lib/harmony/harmonytask"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -323,17 +322,16 @@ func WindowPostScheduler(fc config.MinerFeeConfig, pc config.ProvingConfig) func
|
||||
return nil, err
|
||||
}
|
||||
|
||||
wdPostTask := wdpost.NewWdPostTask(db)
|
||||
tasks := []harmonytask.TaskInterface{wdPostTask}
|
||||
|
||||
taskEngine, err := harmonytask.New(db, []harmonytask.TaskInterface{wdPostTask}, "localhost:12300")
|
||||
if err != nil {
|
||||
return nil, xerrors.Errorf("failed to create task engine: %w", err)
|
||||
}
|
||||
//wdPostTask := wdpost.NewWdPostTask(db)
|
||||
//
|
||||
//taskEngine, err := harmonytask.New(db, []harmonytask.TaskInterface{wdPostTask}, "localhost:12300")
|
||||
//if err != nil {
|
||||
// return nil, xerrors.Errorf("failed to create task engine: %w", err)
|
||||
//}
|
||||
//handler := gin.New()
|
||||
//
|
||||
//taskEngine.ApplyHttpHandlers(handler.Group("/"))
|
||||
defer taskEngine.GracefullyTerminate(time.Hour)
|
||||
//defer taskEngine.GracefullyTerminate(time.Hour)
|
||||
|
||||
lc.Append(fx.Hook{
|
||||
OnStart: func(context.Context) error {
|
||||
|
||||
Reference in New Issue
Block a user