Get interactive porep sector sealing mostly working

This commit is contained in:
whyrusleeping
2019-10-31 20:57:10 -07:00
parent 3cde267a2a
commit fc9091cc89
12 changed files with 70 additions and 61 deletions
-1
View File
@@ -242,7 +242,6 @@ func Online() Option {
Override(new(*deals.Provider), deals.NewProvider),
Override(HandleRetrievalKey, modules.HandleRetrieval),
Override(HandleDealsKey, modules.HandleDeals),
Override(RunSectorServiceKey, modules.RunSectorService),
Override(RegisterMinerKey, modules.RegisterMiner),
),
)
-14
View File
@@ -15,7 +15,6 @@ import (
"github.com/filecoin-project/lotus/node/modules/helpers"
"github.com/filecoin-project/lotus/peermgr"
"github.com/filecoin-project/lotus/retrieval/discovery"
"github.com/filecoin-project/lotus/storage/sector"
)
func RunHello(mctx helpers.MetricsCtx, lc fx.Lifecycle, h host.Host, svc *hello.Service) {
@@ -79,19 +78,6 @@ func RunDealClient(mctx helpers.MetricsCtx, lc fx.Lifecycle, c *deals.Client) {
})
}
func RunSectorService(lc fx.Lifecycle, secst *sector.Store) {
lc.Append(fx.Hook{
OnStart: func(context.Context) error {
secst.Service()
return nil
},
OnStop: func(context.Context) error {
secst.Stop()
return nil
},
})
}
func RetrievalResolver(l *discovery.Local) discovery.PeerResolver {
return discovery.Multi(l)
}
+2 -1
View File
@@ -1,8 +1,9 @@
package node
import (
"go.uber.org/fx"
"reflect"
"go.uber.org/fx"
)
// Option is a functional option which can be used with the New function to