remove some debug output
This commit is contained in:
parent
a04254b07e
commit
35e47e0d3e
|
@ -338,7 +338,6 @@ proc handleNotification(ctx: QuicP2PContext, notification: NotifyPeer)
|
||||||
{.async.} =
|
{.async.} =
|
||||||
let _ = await ctx.puncher.respond(notification.srcIp, notification.srcPort,
|
let _ = await ctx.puncher.respond(notification.srcIp, notification.srcPort,
|
||||||
notification.probedsrcPorts)
|
notification.probedsrcPorts)
|
||||||
echo "respond successful!"
|
|
||||||
|
|
||||||
proc runApp(ctx: QuicP2PContext, srcPort: Port, peerId: string) {.async.} =
|
proc runApp(ctx: QuicP2PContext, srcPort: Port, peerId: string) {.async.} =
|
||||||
let serverConn = await initServerConnection(rendezvousServers[0].hostname,
|
let serverConn = await initServerConnection(rendezvousServers[0].hostname,
|
||||||
|
@ -359,7 +358,6 @@ proc runApp(ctx: QuicP2PContext, srcPort: Port, peerId: string) {.async.} =
|
||||||
try:
|
try:
|
||||||
let msg = parseMessage[NotifyPeer](data)
|
let msg = parseMessage[NotifyPeer](data)
|
||||||
# FIXME: check if we want to receive messages from the sender
|
# FIXME: check if we want to receive messages from the sender
|
||||||
echo "received message from ", msg.sender
|
|
||||||
asyncCheck handleNotification(ctx, msg)
|
asyncCheck handleNotification(ctx, msg)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
echo e.msg
|
echo e.msg
|
||||||
|
@ -375,7 +373,6 @@ proc runApp(ctx: QuicP2PContext, srcPort: Port, peerId: string) {.async.} =
|
||||||
discard await serverConn.sendRequest("notify-peer", req)
|
discard await serverConn.sendRequest("notify-peer", req)
|
||||||
let peerPort = await ctx.puncher.initiate(peerInfo.ip, peerInfo.localPort,
|
let peerPort = await ctx.puncher.initiate(peerInfo.ip, peerInfo.localPort,
|
||||||
peerInfo.probedPorts)
|
peerInfo.probedPorts)
|
||||||
echo "initiate successful!"
|
|
||||||
initiateQuicConnection(ctx, peerId, peerInfo.ip, peerPort)
|
initiateQuicConnection(ctx, peerId, peerInfo.ip, peerPort)
|
||||||
|
|
||||||
proc main() =
|
proc main() =
|
||||||
|
|
Loading…
Reference in New Issue