Remove cli flags
This commit is contained in:
parent
58afade1bb
commit
45bb8c3ebf
@ -154,18 +154,6 @@ var DaemonCmd = &cli.Command{
|
|||||||
Name: "restore-config",
|
Name: "restore-config",
|
||||||
Usage: "config file to use when restoring from backup",
|
Usage: "config file to use when restoring from backup",
|
||||||
},
|
},
|
||||||
&cli.StringFlag{
|
|
||||||
Name: "trace-to-json",
|
|
||||||
Usage: "starts tracer and outputs to json file defined with this flag",
|
|
||||||
},
|
|
||||||
&cli.StringFlag{
|
|
||||||
Name: "trace-to-elasticsearch",
|
|
||||||
Usage: "starts tracer and outputs to elasticsearch, flag must contain connection string for elasticsearch",
|
|
||||||
},
|
|
||||||
&cli.StringFlag{
|
|
||||||
Name: "trace-source-auth",
|
|
||||||
Usage: "auth token for trusted source of traces",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
isLite := cctx.Bool("lite")
|
isLite := cctx.Bool("lite")
|
||||||
@ -323,10 +311,6 @@ var DaemonCmd = &cli.Command{
|
|||||||
log.Warnf("unable to inject prometheus ipfs/go-metrics exporter; some metrics will be unavailable; err: %s", err)
|
log.Warnf("unable to inject prometheus ipfs/go-metrics exporter; some metrics will be unavailable; err: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
traceToJsonFile := cctx.String("trace-to-json")
|
|
||||||
traceToElasticsearch := cctx.String("trace-to-elasticsearch")
|
|
||||||
traceSourceAuth := cctx.String("trace-source-auth")
|
|
||||||
|
|
||||||
var api api.FullNode
|
var api api.FullNode
|
||||||
stop, err := node.New(ctx,
|
stop, err := node.New(ctx,
|
||||||
node.FullAPI(&api, node.Lite(isLite)),
|
node.FullAPI(&api, node.Lite(isLite)),
|
||||||
@ -336,9 +320,6 @@ var DaemonCmd = &cli.Command{
|
|||||||
|
|
||||||
node.Override(new(dtypes.Bootstrapper), isBootstrapper),
|
node.Override(new(dtypes.Bootstrapper), isBootstrapper),
|
||||||
node.Override(new(dtypes.ShutdownChan), shutdownChan),
|
node.Override(new(dtypes.ShutdownChan), shutdownChan),
|
||||||
node.Override(new(dtypes.JsonTracer), traceToJsonFile),
|
|
||||||
node.Override(new(dtypes.ElasticSearchTracer), traceToElasticsearch),
|
|
||||||
node.Override(new(dtypes.TracerSourceAuth), traceSourceAuth),
|
|
||||||
|
|
||||||
genesis,
|
genesis,
|
||||||
liteModeDeps,
|
liteModeDeps,
|
||||||
|
Loading…
Reference in New Issue
Block a user