Browse Source

pex: avoid starting reactor twice (#7239)

pull/7242/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
d59565d050
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      node/node.go

+ 1
- 3
node/node.go View File

@ -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
}


Loading…
Cancel
Save