From 98493ff605ad9f0254c2696ffca02d56c652c464 Mon Sep 17 00:00:00 2001 From: darshankabariya Date: Tue, 23 Dec 2025 16:01:35 +0530 Subject: [PATCH] chore: not forcing value --- waku/factory/conf_builder/waku_conf_builder.nim | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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")