Skip to content

Commit

Permalink
Fix handshake and dial timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Oct 28, 2024
1 parent e5eddb0 commit 10f4171
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,10 @@ func loadStateFromDBOrGenesisDocProvider(stateStore sm.Store, genDoc *types.Gene

func getRouterConfig(conf *config.Config, appClient abciclient.Client) p2p.RouterOptions {
opts := p2p.RouterOptions{
QueueType: conf.P2P.QueueType,
QueueType: conf.P2P.QueueType,
DialTimeout: conf.P2P.DialTimeout,
HandshakeTimeout: conf.P2P.HandshakeTimeout,
ResolveTimeout: conf.P2P.HandshakeTimeout,
}

if conf.FilterPeers && appClient != nil {
Expand Down

0 comments on commit 10f4171

Please sign in to comment.