From 4e0fa64eae5729f51fb98e9fc1ac905585f651be Mon Sep 17 00:00:00 2001 From: darshankabariya Date: Sat, 17 Jan 2026 01:08:38 +0530 Subject: [PATCH] fix: fix the ci --- waku/factory/conf_builder/waku_conf_builder.nim | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/waku/factory/conf_builder/waku_conf_builder.nim b/waku/factory/conf_builder/waku_conf_builder.nim index d0e5af9fc..b952e711e 100644 --- a/waku/factory/conf_builder/waku_conf_builder.nim +++ b/waku/factory/conf_builder/waku_conf_builder.nim @@ -30,6 +30,8 @@ import logScope: topics = "waku conf builder" +const DefaultMaxConnections* = 150 + type MaxMessageSizeKind* = enum mmskNone mmskStr @@ -585,10 +587,17 @@ proc build*( warn "Peer persistence not specified, defaulting to false" false - 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 + let maxConnections = + if builder.maxConnections.isSome(): + builder.maxConnections.get() + else: + warn "Max connections not specified, defaulting to DefaultMaxConnections", + default = DefaultMaxConnections + DefaultMaxConnections + + if maxConnections < DefaultMaxConnections: + warn "max-connections less than DefaultMaxConnections; we suggest using DefaultMaxConnections or more for better connectivity", + provided = maxConnections, recommended = DefaultMaxConnections # TODO: Do the git version thing here let agentString = builder.agentString.get("nwaku")