chore: lint issue

This commit is contained in:
DarshanBPatel 2024-12-18 12:14:37 +05:30
parent 0b143fd77d
commit eb617de9ac
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
1 changed files with 1 additions and 1 deletions

View File

@ -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():