make tests green again
This commit is contained in:
parent
f439a2f25f
commit
bbfe28ec5c
1 changed files with 2 additions and 2 deletions
|
|
@ -129,10 +129,10 @@ proc ftpClient*(address: string, port = Port(21),
|
|||
result.csock = socket()
|
||||
if result.csock == invalidSocket: raiseOSError(osLastError())
|
||||
|
||||
template blockingOperation(sock: Socket, body: stmt) {.immediate.} =
|
||||
template blockingOperation(sock: Socket, body: untyped) =
|
||||
body
|
||||
|
||||
template blockingOperation(sock: asyncio.AsyncSocket, body: stmt) {.immediate.} =
|
||||
template blockingOperation(sock: asyncio.AsyncSocket, body: untyped) =
|
||||
sock.setBlocking(true)
|
||||
body
|
||||
sock.setBlocking(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue