From d1d133319e2e23faf83015eb457149ace044812c Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Mon, 24 Feb 2020 23:21:10 -0600 Subject: [PATCH] change handleConn to be a proc --- libp2p/protocols/secure/secure.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/protocols/secure/secure.nim b/libp2p/protocols/secure/secure.nim index a51af7a..a030f39 100644 --- a/libp2p/protocols/secure/secure.nim +++ b/libp2p/protocols/secure/secure.nim @@ -39,7 +39,7 @@ proc readLoop(sconn: SecureConn, stream: BufferStream) {.async.} = await sconn.close() trace "ending secio readLoop", isclosed = sconn.closed() -method handleConn*(s: Secure, conn: Connection): Future[Connection] {.async, base, gcsafe.} = +proc handleConn*(s: Secure, conn: Connection): Future[Connection] {.async, gcsafe.} = var sconn = await s.handshake(conn) proc writeHandler(data: seq[byte]) {.async, gcsafe.} = trace "sending encrypted bytes", bytes = data.toHex()