mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-10 14:06:38 +00:00
chore: lint issue
This commit is contained in:
parent
5f9ed0831f
commit
9afaab0103
@ -463,7 +463,9 @@ proc initAndStartApp(
|
||||
nodeBuilder.withNodeKey(key)
|
||||
nodeBuilder.withRecord(record)
|
||||
nodeBUilder.withSwitchConfiguration(maxConnections = some(MaxConnectedPeers))
|
||||
nodeBuilder.withPeerManagerConfig(maxConnections = MaxConnectedPeers, relayServiceRatio = 0.154, shardAware = true)
|
||||
nodeBuilder.withPeerManagerConfig(
|
||||
maxConnections = MaxConnectedPeers, relayServiceRatio = 0.154, shardAware = true
|
||||
)
|
||||
let res = nodeBuilder.withNetworkConfigurationDetails(bindIp, nodeTcpPort)
|
||||
if res.isErr():
|
||||
return err("node building error" & $res.error)
|
||||
|
@ -1000,8 +1000,10 @@ proc new*(
|
||||
maxConnections = maxConnections,
|
||||
maxRelayPeers = relayPeers,
|
||||
maxServicePeers = servicePeers
|
||||
raise newException(Defect, "Max number of connections can't be greater than maxRelayPeers + maxServicePeers")
|
||||
|
||||
raise newException(
|
||||
Defect,
|
||||
"Max number of connections can't be greater than maxRelayPeers + maxServicePeers",
|
||||
)
|
||||
else:
|
||||
servicePeers = int(float(maxConnections) / (1 + relayServiceRatio))
|
||||
relayPeers = maxConnections - servicePeers
|
||||
|
Loading…
x
Reference in New Issue
Block a user