fix: call on reader
This commit is contained in:
parent
77aa11f0f3
commit
47b6b89fc5
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue