mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-02-22 09:38:18 +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 =
|
template withEOFExceptions(body: untyped): untyped =
|
||||||
try:
|
try:
|
||||||
body
|
body
|
||||||
except CancelledError as exc:
|
|
||||||
raise exc
|
|
||||||
except LPStreamEOFError as exc:
|
except LPStreamEOFError as exc:
|
||||||
trace "muxed connection EOF", exc = exc.msg
|
trace "muxed connection EOF", exc = exc.msg
|
||||||
except LPStreamClosedError as exc:
|
except LPStreamClosedError as exc:
|
||||||
|
@ -41,8 +41,6 @@ proc init*(C: type ChronosStream,
|
|||||||
template withExceptions(body: untyped) =
|
template withExceptions(body: untyped) =
|
||||||
try:
|
try:
|
||||||
body
|
body
|
||||||
except CancelledError as exc:
|
|
||||||
raise exc
|
|
||||||
except TransportIncompleteError:
|
except TransportIncompleteError:
|
||||||
# for all intents and purposes this is an EOF
|
# for all intents and purposes this is an EOF
|
||||||
raise newLPStreamEOFError()
|
raise newLPStreamEOFError()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user