mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-11 06:11:07 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user