mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-21 09:08:17 +00:00
merge fixes
This commit is contained in:
parent
41d103bb9b
commit
60617d4d39
@ -69,8 +69,6 @@ template withWriteLock(lock: AsyncLock, body: untyped): untyped =
|
||||
template withEOFExceptions(body: untyped): untyped =
|
||||
try:
|
||||
body
|
||||
except CancelledError as exc:
|
||||
raise exc
|
||||
except LPStreamEOFError as exc:
|
||||
trace "muxed connection EOF", exc = exc.msg
|
||||
except LPStreamClosedError as exc:
|
||||
|
@ -41,8 +41,6 @@ proc init*(C: type ChronosStream,
|
||||
template withExceptions(body: untyped) =
|
||||
try:
|
||||
body
|
||||
except CancelledError as exc:
|
||||
raise exc
|
||||
except TransportIncompleteError:
|
||||
# for all intents and purposes this is an EOF
|
||||
raise newLPStreamEOFError()
|
||||
|
Loading…
x
Reference in New Issue
Block a user