mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-12 12:04:08 +00:00
move trace log
This commit is contained in:
parent
82b4ed8f44
commit
ee281310c0
@ -51,8 +51,8 @@ proc isConnected*(p: PubSubPeer): bool =
|
|||||||
(not isNil(p.sendConn))
|
(not isNil(p.sendConn))
|
||||||
|
|
||||||
proc `conn=`*(p: PubSubPeer, conn: Connection) =
|
proc `conn=`*(p: PubSubPeer, conn: Connection) =
|
||||||
trace "attaching send connection for peer", peer = p.id
|
|
||||||
if not(isNil(conn)):
|
if not(isNil(conn)):
|
||||||
|
trace "attaching send connection for peer", peer = p.id
|
||||||
p.sendConn = conn
|
p.sendConn = conn
|
||||||
p.onConnect.fire()
|
p.onConnect.fire()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user