add watermark low/high options for p2p connection manager

pull/4509/head
“GheisMohammadi” 2 years ago committed by Casey Gardiner
parent f799b09bea
commit a65ab98547
  1. 4
      p2p/discovery/option_test.go
  2. 2
      rosetta/infra/harmony-mainnet.conf
  3. 2
      rosetta/infra/harmony-pstn.conf

@ -40,14 +40,14 @@ func TestDHTOption_getLibp2pRawOptions(t *testing.T) {
opt: DHTConfig{
BootNodes: testAddrStr,
},
expLen: 2,
expLen: 1,
},
{
opt: DHTConfig{
BootNodes: testAddrStr,
DataStoreFile: &validPath,
},
expLen: 3,
expLen: 2,
},
{
opt: DHTConfig{

@ -74,6 +74,8 @@ Version = "2.5.13"
MaxConnsPerIP = 10
MaxPeers = 0
Port = 9000
ConnManagerLowWatermark = 160
ConnManagerHighWatermark = 192
WaitForEachPeerToConnect = false
[Pprof]

@ -74,6 +74,8 @@ Version = "2.5.13"
MaxConnsPerIP = 10
MaxPeers = 0
Port = 9000
ConnManagerLowWatermark = 160
ConnManagerHighWatermark = 192
WaitForEachPeerToConnect = false
[Pprof]

Loading…
Cancel
Save