From 10548f9b1bc854547aedc8769f147dab7ed3dbb7 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 22 Nov 2018 16:16:34 +0200 Subject: [PATCH] Enable bootstrap. --- examples/chat.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chat.nim b/examples/chat.nim index b79a21f5b..466bd45b4 100644 --- a/examples/chat.nim +++ b/examples/chat.nim @@ -62,8 +62,8 @@ proc main() {.async.} = thread.createThread(threadMain, 0) echo "= Starting P2P node" - data.api = await newDaemonApi({DHTFull}) - await sleepAsync(1000) + data.api = await newDaemonApi({DHTFull, Bootstrap}) + await sleepAsync(3000) var id = await data.api.identity() proc streamHandler(api: DaemonAPI, stream: P2PStream) {.async.} =