mirror of https://github.com/waku-org/nwaku.git
chore: lint issue
This commit is contained in:
parent
0b143fd77d
commit
eb617de9ac
|
@ -995,7 +995,7 @@ proc new*(
|
||||||
let (relayRatio, serviceRatio) = relayServiceRatio.get
|
let (relayRatio, serviceRatio) = relayServiceRatio.get
|
||||||
|
|
||||||
var relayPeers = int(ceil(float(maxConnections) * relayRatio))
|
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() or maxServicePeers.isSome():
|
||||||
if maxRelayPeers.isSome() and maxServicePeers.isSome():
|
if maxRelayPeers.isSome() and maxServicePeers.isSome():
|
||||||
|
|
Loading…
Reference in New Issue