mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
chore: update PR
This commit is contained in:
parent
9c4d94ac42
commit
05c22bbe79
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user