From 22cefcfd4b065f068e122e39d512807279376cde Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Tue, 1 Dec 2020 18:32:41 +0530 Subject: [PATCH] Minor nit --- test/server.nim | 4 ++-- ws/ws.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/server.nim b/test/server.nim index a0b83b19de..77896826d1 100644 --- a/test/server.nim +++ b/test/server.nim @@ -1,7 +1,7 @@ -import ../ws, chronos, asynchttpserver +import ws, chronos, asynchttpserver proc cb(req: Request) {.async.} = - var ws = await newWebSocket(req) + let (ws, error) = await newWebSocket(req) ws.close() var server = newAsyncHttpServer() diff --git a/ws/ws.nim b/ws/ws.nim index 44e390146b..18fecb3241 100644 --- a/ws/ws.nim +++ b/ws/ws.nim @@ -1,4 +1,4 @@ -import chronos, asyncdispatch, asynchttpserver, base64, nativesockets +import chronos, asynchttpserver, base64, nativesockets type HeaderVerificationError* {.pure.} = enum None