summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/async/tasyncawait.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/async/tasyncawait.nim b/tests/async/tasyncawait.nim
index 84a4164d9..bcaffc287 100644
--- a/tests/async/tasyncawait.nim
+++ b/tests/async/tasyncawait.nim
@@ -52,8 +52,7 @@ proc createServer(disp: PDispatcher, port: TPort): PFuture[int] {.async.} =
   server.bindAddr(port)
   server.listen()
   while true:
-    var client = await disp.accept(server)
-    discard readMessages(disp, client)
+    discard readMessages(disp, await disp.accept(server))
 
 discard disp.createServer(TPort(10335))
 discard disp.launchSwarm(TPort(10335))