Browse Source

fix p2p switch FlushThrottle value (#2569)

pull/2571/head
goolAdapter 6 years ago
committed by Anton Kaliaev
parent
commit
5f88fe0e9b
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      CHANGELOG_PENDING.md
  2. +1
    -1
      p2p/switch.go

+ 1
- 0
CHANGELOG_PENDING.md View File

@ -48,3 +48,4 @@ timeoutPrecommit before starting next round
- [common/bit_array] Fixed a bug in the `Or` function
- [common/bit_array] Fixed a bug in the `Sub` function (@bradyjoestar)
- [common] \#2534 make bit array's PickRandom choose uniformly from true bits
- [p2p] \#2555 fix p2p switch FlushThrottle value (@goolAdapter)

+ 1
- 1
p2p/switch.go View File

@ -103,7 +103,7 @@ func NewSwitch(
sw.rng = cmn.NewRand()
mConfig := conn.DefaultMConnConfig()
mConfig.FlushThrottle = time.Duration(cfg.FlushThrottleTimeout) * time.Millisecond
mConfig.FlushThrottle = cfg.FlushThrottleTimeout
mConfig.SendRate = cfg.SendRate
mConfig.RecvRate = cfg.RecvRate
mConfig.MaxPacketMsgPayloadSize = cfg.MaxPacketMsgPayloadSize


Loading…
Cancel
Save