improving comment

This commit is contained in:
Gabriel mermelstein 2024-02-29 11:17:00 +02:00
parent 5449f05467
commit 960a3c40a3
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ proc setupDiscoveryV5*(app: App): WakuDiscoveryV5 =
app.node.topicSubscriptionQueue,
)
proc getPorts(listenAddrs: seq[MultiAddress]):
#[ proc getPorts(listenAddrs: seq[MultiAddress]):
AppResult[tuple[tcpPort, websocketPort: Option[Port]]] =
var tcpPort, websocketPort = none(Port)
@ -186,7 +186,7 @@ proc getPorts(listenAddrs: seq[MultiAddress]):
return ok((tcpPort: tcpPort, websocketPort: websocketPort))
#[ proc updateNetConfig(app: var App): AppResult[void] =
proc updateNetConfig(app: var App): AppResult[void] =
var conf = app.conf
let (tcpPort, websocketPort) = getPorts(app.node.switch.peerInfo.listenAddrs).valueOr: