From 466f1ecfceabaff5a1ecdfd5fabbcb2bd130f776 Mon Sep 17 00:00:00 2001 From: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com> Date: Mon, 3 May 2021 08:48:55 +0200 Subject: [PATCH] Apply keep-alive for chat2 (#525) --- examples/v2/chat2.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/v2/chat2.nim b/examples/v2/chat2.nim index c193088c2..615154839 100644 --- a/examples/v2/chat2.nim +++ b/examples/v2/chat2.nim @@ -249,9 +249,9 @@ proc processInput(rfd: AsyncFD, rng: ref BrHmacDrbgContext) {.async.} = await node.start() if conf.filternode != "": - node.mountRelay(conf.topics.split(" "), rlnRelayEnabled = conf.rlnrelay) + node.mountRelay(conf.topics.split(" "), rlnRelayEnabled = conf.rlnrelay, keepAlive = conf.keepAlive) else: - node.mountRelay(@[], rlnRelayEnabled = conf.rlnrelay) + node.mountRelay(@[], rlnRelayEnabled = conf.rlnrelay, keepAlive = conf.keepAlive) let nick = await readNick(transp) echo "Welcome, " & nick & "!"