mirror of https://github.com/vacp2p/nim-libp2p.git
readLp should warn on ignored exceptions
This commit is contained in:
parent
a1c760127b
commit
bb277d4b56
|
@ -102,7 +102,7 @@ proc readLp*(s: Connection): Future[seq[byte]] {.async, gcsafe.} =
|
|||
if size > 0.uint:
|
||||
await s.readExactly(addr result[0], int(size))
|
||||
except LPStreamIncompleteError, LPStreamReadError:
|
||||
error "readLp: could not read from remote", exception = getCurrentExceptionMsg()
|
||||
warn "readLp: could not read from remote, this is usually ok", exception = getCurrentExceptionMsg()
|
||||
|
||||
proc writeLp*(s: Connection, msg: string | seq[byte]): Future[void] {.gcsafe.} =
|
||||
## write lenght prefixed
|
||||
|
|
Loading…
Reference in New Issue