From f4740c8b8e1d55b45ed578cb42e1cd084f9b9644 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 7 Apr 2020 14:55:05 -0600 Subject: [PATCH] fix trace runs in connection --- libp2p/connection.nim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libp2p/connection.nim b/libp2p/connection.nim index 4ad20e0..0d73eac 100644 --- a/libp2p/connection.nim +++ b/libp2p/connection.nim @@ -40,13 +40,13 @@ proc bindStreamClose(conn: Connection) {.async.} = # to ensure correct close propagation if not isNil(conn.stream.closeEvent): await conn.stream.closeEvent.wait() - trace "wrapped stream closed, about to close conn", closed = this.isClosed, - peer = if not isNil(this.peerInfo): - this.peerInfo.id else: "" + trace "wrapped stream closed, about to close conn", closed = conn.isClosed, + peer = if not isNil(conn.peerInfo): + conn.peerInfo.id else: "" if not conn.isClosed: - trace "wrapped stream closed, closing conn", closed = this.isClosed, - peer = if not isNil(this.peerInfo): - this.peerInfo.id else: "" + trace "wrapped stream closed, closing conn", closed = conn.isClosed, + peer = if not isNil(conn.peerInfo): + conn.peerInfo.id else: "" asyncCheck conn.close() proc init*[T: Connection](self: var T, stream: LPStream): T =