shutdownChan instead of shutdownCh, for consistency

This commit is contained in:
laser 2020-06-02 12:31:01 -07:00
parent 36a93c90eb
commit 1e8a875edb

View File

@ -191,7 +191,7 @@ var DaemonCmd = &cli.Command{
genesis = node.Override(new(modules.Genesis), testing.MakeGenesis(cctx.String(makeGenFlag), cctx.String(preTemplateFlag))) genesis = node.Override(new(modules.Genesis), testing.MakeGenesis(cctx.String(makeGenFlag), cctx.String(preTemplateFlag)))
} }
shutdownCh := make(chan struct{}) shutdownChan := make(chan struct{})
var api api.FullNode var api api.FullNode
@ -199,7 +199,7 @@ var DaemonCmd = &cli.Command{
node.FullAPI(&api), node.FullAPI(&api),
node.Override(new(dtypes.Bootstrapper), isBootstrapper), node.Override(new(dtypes.Bootstrapper), isBootstrapper),
node.Override(new(dtypes.ShutdownCh), shutdownCh), node.Override(new(dtypes.ShutdownCh), shutdownChan),
node.Online(), node.Online(),
node.Repo(r), node.Repo(r),
@ -245,7 +245,7 @@ var DaemonCmd = &cli.Command{
} }
// TODO: properly parse api endpoint (or make it a URL) // TODO: properly parse api endpoint (or make it a URL)
return serveRPC(api, stop, endpoint, shutdownCh) return serveRPC(api, stop, endpoint, shutdownChan)
}, },
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
daemonStopCmd, daemonStopCmd,