From d1c6591b8a32a09820ddd0dcb2f3e3e665cf410f Mon Sep 17 00:00:00 2001 From: Eugene Kabanov Date: Wed, 4 Mar 2020 21:45:14 +0200 Subject: [PATCH] Fix and refactoring of some procedures which are able to return nil as result (#97) * Fix do not return nil as result. * Fix mplex test to properly raise. --- libp2p/protocols/secure/secure.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libp2p/protocols/secure/secure.nim b/libp2p/protocols/secure/secure.nim index fb8c8e298..eb24eb6c9 100644 --- a/libp2p/protocols/secure/secure.nim +++ b/libp2p/protocols/secure/secure.nim @@ -20,7 +20,9 @@ import secureconn, type Secure* = ref object of LPProtocol # base type for secure managers -method handshake(s: Secure, conn: Connection, initiator: bool = true): Future[SecureConn] {.async, base.} = +method handshake(s: Secure, + conn: Connection, + initiator: bool = true): Future[SecureConn] {.async, base.} = doAssert(false, "Not implemented!") proc readLoop(sconn: SecureConn, stream: BufferStream) {.async.} =