diff --git a/waku/factory/conf_builder/waku_conf_builder.nim b/waku/factory/conf_builder/waku_conf_builder.nim index cd01897a9..d0e5af9fc 100644 --- a/waku/factory/conf_builder/waku_conf_builder.nim +++ b/waku/factory/conf_builder/waku_conf_builder.nim @@ -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() - 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 + 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 # TODO: Do the git version thing here let agentString = builder.agentString.get("nwaku")