style improvements; fixes #11774

This commit is contained in:
Araq 2019-07-19 17:25:04 +02:00
commit 5a020d641d
6 changed files with 9 additions and 9 deletions

View file

@ -1110,7 +1110,7 @@ proc waitFor(socket: Socket, waited: var Duration, timeout, size: int,
if selRet < 0: raiseOSError(osLastError())
if selRet != 1:
raise newException(TimeoutError, "Call to '" & funcName & "' timed out.")
waited += (getMonoTIme() - startTime)
waited += (getMonoTime() - startTime)
proc recv*(socket: Socket, data: pointer, size: int, timeout: int): int {.
tags: [ReadIOEffect, TimeEffect].} =