From 47b6b89fc56451eb5aeb8e3041582701a42ed329 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Sun, 25 Aug 2019 13:07:24 -0600 Subject: [PATCH] fix: call on reader --- libp2p/chronosstream.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/chronosstream.nim b/libp2p/chronosstream.nim index 2498ae29f..be25701d6 100644 --- a/libp2p/chronosstream.nim +++ b/libp2p/chronosstream.nim @@ -29,7 +29,7 @@ method read*(s: ChronosStream, n = -1): Future[seq[byte]] {.async.} = result = await s.reader.read(n) method readExactly*(s: ChronosStream, pbytes: pointer, nbytes: int): Future[void] {.async.} = - await s.readExactly(pbytes, nbytes) + await s.reader.readExactly(pbytes, nbytes) method readLine*(s: ChronosStream, limit = 0, sep = "\r\n"): Future[string] {.async.} = result = await s.reader.readLine(limit, sep)