diff --git a/libp2p/transports/wstransport.nim b/libp2p/transports/wstransport.nim index e373688b9..9eb8a340d 100644 --- a/libp2p/transports/wstransport.nim +++ b/libp2p/transports/wstransport.nim @@ -56,7 +56,7 @@ proc new*( stream.initStream() return stream -template mapExceptions(body: untyped) = +template mapExceptions(body: untyped): untyped = try: body except AsyncStreamIncompleteError: