Skip to content

Commit

Permalink
fix: signature fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vladopajic committed Feb 13, 2025
1 parent c7dfb15 commit 778114a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testdaemon.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ proc connectStreamTest(): Future[bool] {.async.} =

var testFuture = newFuture[string]("test.future")

proc streamHandler(api: DaemonAPI, stream: P2PStream) {.async.} =
proc streamHandler(
api: DaemonAPI, stream: P2PStream
) {.async: (raises: [CatchableError]).} =
var line = await stream.transp.readLine()
testFuture.complete(line)

Expand Down

0 comments on commit 778114a

Please sign in to comment.