mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 23:13:09 +00:00
chore: more regular keepalive pings (#990)
This commit is contained in:
parent
e680669394
commit
a3820b26ab
@ -779,7 +779,7 @@ proc keepaliveLoop(node: WakuNode, keepalive: chronos.Duration) {.async.} =
|
||||
await sleepAsync(keepalive)
|
||||
|
||||
proc startKeepalive*(node: WakuNode) =
|
||||
let defaultKeepalive = 5.minutes # 50% of the default chronosstream timeout duration
|
||||
let defaultKeepalive = 2.minutes # 20% of the default chronosstream timeout duration
|
||||
|
||||
info "starting keepalive", keepalive=defaultKeepalive
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user