chore: update PR

This commit is contained in:
DarshanBPatel 2024-08-22 22:06:02 +05:30
parent 9c4d94ac42
commit 05c22bbe79

View File

@ -52,7 +52,6 @@ proc main() {.async.} =
for i in 0 .. 60:
echo "Seq No :- " & $i & " ---> "
let response = await wakuApp.node.wakuPeerExchange.request(5, peer_info)
iter += 5
if response.isOk:
var validPeers = 0
let peers = response.get().peerInfos
@ -63,7 +62,7 @@ proc main() {.async.} =
let peerId = peer_info.peerId
let ma = peer_info.addrs
echo $iter & ") -----> " & $ma[0] & " -- " & $peerId
iter += 1
try:
let wait = 20000
let conn = await switch
@ -80,6 +79,8 @@ proc main() {.async.} =
else:
echo " ------------ response isn't not ok ------------------"
sleep(120000)
while iter mod 5 == 0:
iter += 1
echo "---------------------------- Done ------------------------------- "
when isMainModule: