p2p: cleanup unused arguments (#7079)

This is mostly just reading through the output of uparam, after
noticing that there were a few places where we were ignoring some arguments.
This commit is contained in:
Sam Kleinman
2021-10-08 08:49:17 -04:00
committed by GitHub
parent 4ca130d226
commit 1b5bb5348f
7 changed files with 22 additions and 25 deletions

View File

@@ -79,7 +79,7 @@ func run(configFile string) error {
case string(e2e.ModeLight):
err = startLightNode(cfg)
case string(e2e.ModeSeed):
err = startSeedNode(cfg)
err = startSeedNode()
default:
err = startNode(cfg)
}
@@ -140,7 +140,7 @@ func startNode(cfg *Config) error {
return n.Start()
}
func startSeedNode(cfg *Config) error {
func startSeedNode() error {
tmcfg, nodeLogger, err := setupNode()
if err != nil {
return fmt.Errorf("failed to setup config: %w", err)