node: cleanup pex initialization (#6467)

This commit is contained in:
Sam Kleinman
2021-05-14 10:05:59 -04:00
committed by GitHub
parent 15a67b37d8
commit fa891c5a4b
5 changed files with 67 additions and 56 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func NewRunNodeCmd(nodeProvider nm.Provider) *cobra.Command {
return fmt.Errorf("failed to start node: %w", err)
}
logger.Info("Started node", "nodeInfo", n.Switch().NodeInfo())
logger.Info("Started node", "nodeInfo", n.NodeInfo())
// Stop upon receiving SIGTERM or CTRL-C.
tmos.TrapSignal(logger, func() {