mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-04 04:04:00 +00:00
p2p: use correct transport configuration (#7152)
This commit is contained in:
@@ -402,8 +402,14 @@ func createConsensusReactor(
|
||||
}
|
||||
|
||||
func createTransport(logger log.Logger, cfg *config.Config) *p2p.MConnTransport {
|
||||
conf := conn.DefaultMConnConfig()
|
||||
conf.FlushThrottle = cfg.P2P.FlushThrottleTimeout
|
||||
conf.SendRate = cfg.P2P.SendRate
|
||||
conf.RecvRate = cfg.P2P.RecvRate
|
||||
conf.MaxPacketMsgPayloadSize = cfg.P2P.MaxPacketMsgPayloadSize
|
||||
|
||||
return p2p.NewMConnTransport(
|
||||
logger, conn.DefaultMConnConfig(), []*p2p.ChannelDescriptor{},
|
||||
logger, conf, []*p2p.ChannelDescriptor{},
|
||||
p2p.MConnTransportOptions{
|
||||
MaxAcceptedConnections: uint32(cfg.P2P.MaxConnections),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user