chore: not forcing value

This commit is contained in:
darshankabariya 2025-12-23 16:01:35 +05:30
parent 0bd5a7ba59
commit 98493ff605
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22

View File

@ -585,15 +585,10 @@ proc build*(
warn "Peer persistence not specified, defaulting to false"
false
var maxConnections: int
if builder.maxConnections.isSome():
maxConnections = builder.maxConnections.get()
let maxConnections = builder.maxConnections.get()
if maxConnections < 150:
warn "max-connections less than 150; we suggest using 150 or more for better connectivity",
provided = maxConnections
else:
warn "Max Connections was not specified, defaulting to 150"
maxConnections = 150
# TODO: Do the git version thing here
let agentString = builder.agentString.get("nwaku")