From 1e8a875edb6f9a06cd527989535d291f315039da Mon Sep 17 00:00:00 2001 From: laser Date: Tue, 2 Jun 2020 12:31:01 -0700 Subject: [PATCH] shutdownChan instead of shutdownCh, for consistency --- cmd/lotus/daemon.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/lotus/daemon.go b/cmd/lotus/daemon.go index f9522d83e..a2e0fbe76 100644 --- a/cmd/lotus/daemon.go +++ b/cmd/lotus/daemon.go @@ -191,7 +191,7 @@ var DaemonCmd = &cli.Command{ 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 @@ -199,7 +199,7 @@ var DaemonCmd = &cli.Command{ node.FullAPI(&api), node.Override(new(dtypes.Bootstrapper), isBootstrapper), - node.Override(new(dtypes.ShutdownCh), shutdownCh), + node.Override(new(dtypes.ShutdownCh), shutdownChan), node.Online(), node.Repo(r), @@ -245,7 +245,7 @@ var DaemonCmd = &cli.Command{ } // 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{ daemonStopCmd,