Skip to content

Commit 402c3e7

Browse files
committed
test
1 parent bb65a53 commit 402c3e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

json_rpc/clients/websocketclient.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,14 @@ method request*(
5959
# broken since we don't know if the server observed the message or not
6060
try:
6161
await noCancel transport.close()
62-
except CatchableError as exc:
62+
except CatchableError:
6363
# TODO https://github.com/status-im/nim-websock/pull/178
6464
raiseAssert "Doesn't actually raise"
6565
raise (ref RpcPostError)(msg: exc.msg, parent: exc)
6666

6767
await fut
6868

6969
proc processData(client: RpcWebSocketClient) {.async: (raises: []).} =
70-
let transport = client.transport
7170
var lastError: ref JsonRpcError
7271
while client.transport.readyState != ReadyState.Closed:
7372
var data =

json_rpc/servers/socketserver.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ proc processClient(server: StreamServer, transport: StreamTransport) {.async: (r
4242
len = req.len
4343

4444
let res = await rpc.route(req)
45+
debugEcho "c '", res, "'"
4546
discard await transport.write(res & "\r\n")
4647
except TransportError as ex:
4748
error "Transport closed during processing client",

0 commit comments

Comments
 (0)