From e98ec9fd49c03bd8cdd8f0dfa426c1407be8c8d6 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 3 Oct 2019 13:29:58 -0600 Subject: [PATCH] use doAssert for release asserts --- libp2p/stream/lpstream.nim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libp2p/stream/lpstream.nim b/libp2p/stream/lpstream.nim index a615c9c2a..8d1c603b7 100644 --- a/libp2p/stream/lpstream.nim +++ b/libp2p/stream/lpstream.nim @@ -49,38 +49,38 @@ proc newLPStreamClosedError*(): ref Exception {.inline.} = method read*(s: LPStream, n = -1): Future[seq[byte]] {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!") method readExactly*(s: LPStream, pbytes: pointer, nbytes: int): Future[void] {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!") method readLine*(s: LPStream, limit = 0, sep = "\r\n"): Future[string] {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!") method readOnce*(s: LPStream, pbytes: pointer, nbytes: int): Future[int] {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!") method readUntil*(s: LPStream, pbytes: pointer, nbytes: int, sep: seq[byte]): Future[int] {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!") method write*(s: LPStream, pbytes: pointer, nbytes: int) {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!") method write*(s: LPStream, msg: string, msglen = -1) {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!") method write*(s: LPStream, msg: seq[byte], msglen = -1) {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!") method close*(s: LPStream) {.base, async, gcsafe.} = - assert(false, "not implemented!") + doAssert(false, "not implemented!")