mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-12 15:54:36 +00:00
chore: lint issue
This commit is contained in:
parent
0b143fd77d
commit
eb617de9ac
@ -995,7 +995,7 @@ proc new*(
|
||||
let (relayRatio, serviceRatio) = relayServiceRatio.get
|
||||
|
||||
var relayPeers = int(ceil(float(maxConnections) * relayRatio))
|
||||
var servicePeers = int(floor(float(maxConnections) * serviceRatio))
|
||||
var servicePeers = int(floor(float(maxConnections) * serviceRatio))
|
||||
|
||||
if maxRelayPeers.isSome() or maxServicePeers.isSome():
|
||||
if maxRelayPeers.isSome() and maxServicePeers.isSome():
|
||||
|
Loading…
x
Reference in New Issue
Block a user