mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-03-08 10:03:40 +00:00
Apply keep-alive for chat2 (#525)
This commit is contained in:
parent
f457db9e0a
commit
466f1ecfce
@ -249,9 +249,9 @@ proc processInput(rfd: AsyncFD, rng: ref BrHmacDrbgContext) {.async.} =
|
|||||||
await node.start()
|
await node.start()
|
||||||
|
|
||||||
if conf.filternode != "":
|
if conf.filternode != "":
|
||||||
node.mountRelay(conf.topics.split(" "), rlnRelayEnabled = conf.rlnrelay)
|
node.mountRelay(conf.topics.split(" "), rlnRelayEnabled = conf.rlnrelay, keepAlive = conf.keepAlive)
|
||||||
else:
|
else:
|
||||||
node.mountRelay(@[], rlnRelayEnabled = conf.rlnrelay)
|
node.mountRelay(@[], rlnRelayEnabled = conf.rlnrelay, keepAlive = conf.keepAlive)
|
||||||
|
|
||||||
let nick = await readNick(transp)
|
let nick = await readNick(transp)
|
||||||
echo "Welcome, " & nick & "!"
|
echo "Welcome, " & nick & "!"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user