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.
This commit is contained in:
Eugene Kabanov 2020-03-04 21:45:14 +02:00 committed by Dmitriy Ryajov
parent c3e791db0d
commit d1c6591b8a
1 changed files with 3 additions and 1 deletions

View File

@ -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.} =