mirror of
https://github.com/logos-storage/logos-storage-nim-dht.git
synced 2026-01-03 14:03:08 +00:00
chronosim: trace instead of info
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
d496a47394
commit
45e2dead2d
@ -45,7 +45,7 @@ when(emulateDatagram): #enable network emulator
|
||||
|
||||
proc recvFrom[T](transp: DatagramTransport, remote: TransportAddress,
|
||||
msg: sink seq[T], msglen = -1) =
|
||||
info "recv from ", remote
|
||||
trace "recv:", src = remote, dst = transp.local
|
||||
{.gcsafe.}:
|
||||
transp.ingress.addLast(msg)
|
||||
# call the callback on remote
|
||||
@ -63,6 +63,7 @@ when(emulateDatagram): #enable network emulator
|
||||
|
||||
proc sendTo*[T](transp: DatagramTransport, remote: TransportAddress,
|
||||
msg: sink seq[T], msglen = -1) {.async.} =
|
||||
trace "send:", src = transp.local, dst = remote
|
||||
|
||||
#transp.egress.addLast(remote, msg)
|
||||
#await sleepAsync(getLineTime(transp, msg))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user