Skip to content

Commit

Permalink
pex: avoid starting reactor twice (#7239)
Browse files Browse the repository at this point in the history
  • Loading branch information
tychoish committed Nov 4, 2021
1 parent 003d15f commit d59565d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions node/node.go
Expand Up @@ -683,9 +683,7 @@ func (n *nodeImpl) OnStart() error {
if err != nil {
return fmt.Errorf("could not dial peers from persistent-peers field: %w", err)
}
}

if n.config.P2P.PexReactor {
} else if n.config.P2P.PexReactor {
if err := n.pexReactor.Start(); err != nil {
return err
}
Expand Down

0 comments on commit d59565d

Please sign in to comment.