mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-04-01 17:33:51 +00:00
await 30 seconds before starting watchdog
This commit is contained in:
parent
a6f96ac42a
commit
8535e38b94
@ -136,7 +136,7 @@ proc watchdogThreadBody(ctx: ptr WakuContext) {.thread.} =
|
||||
## Watchdog thread that monitors the Waku thread and notifies the library user if it hangs.
|
||||
|
||||
let watchdogRun = proc(ctx: ptr WakuContext) {.async.} =
|
||||
return
|
||||
await sleepAsync(30.seconds) # await for the node to get created
|
||||
const WatchdogTimeinterval = 1.seconds
|
||||
const WakuNotRespondingTimeout = 3.seconds
|
||||
while true:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user