style improvements; fixes #11774
This commit is contained in:
parent
313cc337f2
commit
5a020d641d
6 changed files with 9 additions and 9 deletions
|
|
@ -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].} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue