mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-02 08:04:57 +00:00
change handleConn to be a proc
This commit is contained in:
parent
9aa9e97602
commit
d1d133319e
@ -39,7 +39,7 @@ proc readLoop(sconn: SecureConn, stream: BufferStream) {.async.} =
|
|||||||
await sconn.close()
|
await sconn.close()
|
||||||
trace "ending secio readLoop", isclosed = sconn.closed()
|
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)
|
var sconn = await s.handshake(conn)
|
||||||
proc writeHandler(data: seq[byte]) {.async, gcsafe.} =
|
proc writeHandler(data: seq[byte]) {.async, gcsafe.} =
|
||||||
trace "sending encrypted bytes", bytes = data.toHex()
|
trace "sending encrypted bytes", bytes = data.toHex()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user