From ee281310c0a7dd92c5e860b67304a46c63587bf8 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Mon, 8 Jun 2020 10:40:08 -0600 Subject: [PATCH] move trace log --- libp2p/protocols/pubsub/pubsubpeer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/protocols/pubsub/pubsubpeer.nim b/libp2p/protocols/pubsub/pubsubpeer.nim index e2a07f591..696d9cea0 100644 --- a/libp2p/protocols/pubsub/pubsubpeer.nim +++ b/libp2p/protocols/pubsub/pubsubpeer.nim @@ -51,8 +51,8 @@ proc isConnected*(p: PubSubPeer): bool = (not isNil(p.sendConn)) proc `conn=`*(p: PubSubPeer, conn: Connection) = - trace "attaching send connection for peer", peer = p.id if not(isNil(conn)): + trace "attaching send connection for peer", peer = p.id p.sendConn = conn p.onConnect.fire()