fix: call on reader

This commit is contained in:
Dmitriy Ryajov 2019-08-25 13:07:24 -06:00
parent 77aa11f0f3
commit 47b6b89fc5
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ method read*(s: ChronosStream, n = -1): Future[seq[byte]] {.async.} =
result = await s.reader.read(n) result = await s.reader.read(n)
method readExactly*(s: ChronosStream, pbytes: pointer, nbytes: int): Future[void] {.async.} = 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.} = method readLine*(s: ChronosStream, limit = 0, sep = "\r\n"): Future[string] {.async.} =
result = await s.reader.readLine(limit, sep) result = await s.reader.readLine(limit, sep)