Skip to content

Commit

Permalink
feat: curio: Move boost proxy into the main binary
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Mar 26, 2024
1 parent 3cb9b6c commit 26b190c
Show file tree
Hide file tree
Showing 7 changed files with 440 additions and 508 deletions.
7 changes: 7 additions & 0 deletions cmd/curio/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import (
"github.com/urfave/cli/v2"
"go.opencensus.io/stats"
"go.opencensus.io/tag"
"golang.org/x/xerrors"

"github.com/filecoin-project/lotus/build"
lcli "github.com/filecoin-project/lotus/cli"
"github.com/filecoin-project/lotus/cmd/curio/deps"
"github.com/filecoin-project/lotus/cmd/curio/rpc"
"github.com/filecoin-project/lotus/cmd/curio/tasks"
"github.com/filecoin-project/lotus/curiosrc/market/lmrpc"
"github.com/filecoin-project/lotus/lib/ulimit"
"github.com/filecoin-project/lotus/metrics"
"github.com/filecoin-project/lotus/node"
Expand Down Expand Up @@ -134,6 +136,11 @@ var runCmd = &cli.Command{
if err != nil {
return err
}

if err := lmrpc.ServeCurioMarketRPCFromConfig(dependencies.DB, dependencies.Full, dependencies.Cfg); err != nil {
return xerrors.Errorf("starting market RPCs: %w", err)
}

finishCh := node.MonitorShutdown(shutdownChan) //node.ShutdownHandler{Component: "rpc server", StopFunc: rpcStopper},
//node.ShutdownHandler{Component: "curio", StopFunc: stop},

Expand Down
Loading

0 comments on commit 26b190c

Please sign in to comment.