mirror of https://github.com/vacp2p/nim-libp2p.git
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)
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue