Skip to content

Commit

Permalink
bump ngtcp2
Browse files Browse the repository at this point in the history
  • Loading branch information
Menduist committed Aug 26, 2022
1 parent 8743bb9 commit 6173fbe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libp2p/transports/quictransport.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export multicodec
export connection
export transport

{.push raises: [Defect].}
when (NimMajor, NimMinor) < (1, 4):
{.push raises: [Defect].}
else:
{.push raises: [].}

logScope:
topics = "libp2p quictransport"
Expand Down Expand Up @@ -119,7 +122,7 @@ proc identify(
) {.async, gcsafe.} =
# new stream for identify
let muxer = QuicMuxer(quicSession: conn, connection: conn)
muxer.streamHandler = proc(conn: P2PConnection) {.async, gcsafe, raises: [Defect].} =
muxer.streamHandler = proc(conn: P2PConnection) {.async, gcsafe.} =
trace "Starting stream handler"
try:
await self.ms.handle(conn) # handle incoming connection
Expand Down

0 comments on commit 6173fbe

Please sign in to comment.