Skip to content

Commit

Permalink
fix hp interop
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Jun 6, 2024
1 parent c38524e commit 1f78c01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/hole-punching-interop/hole_punching.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import std/[os, options, strformat]
import std/[os, options, strformat, sequtils]
import redis
import chronos, chronicles
import ../../libp2p/[builders,
switch,
multicodec,
observedaddrmanager,
services/hpservice,
services/autorelayservice,
Expand Down Expand Up @@ -76,7 +77,7 @@ proc main() {.async.} =
debug "Connected to relay", relayId

# Wait for our relay address to be published
while switch.peerInfo.addrs.len == 0:
while not switch.peerInfo.addrs.anyIt(it.contains(multiCodec("p2p-circuit"))):
await sleepAsync(100.milliseconds)

if isListener:
Expand Down

0 comments on commit 1f78c01

Please sign in to comment.