revert stdlib changes which are not required anymore
This commit is contained in:
parent
66f18037b3
commit
484548c784
6 changed files with 20 additions and 21 deletions
|
|
@ -600,7 +600,8 @@ proc contains*[T](s: Selector[T], fd: SocketHandle|int): bool {.inline.} =
|
|||
proc getData*[T](s: Selector[T], fd: SocketHandle|int): var T =
|
||||
let fdi = int(fd)
|
||||
s.checkFd(fdi)
|
||||
result = s.fds[fdi].data
|
||||
if fdi in s:
|
||||
result = s.fds[fdi].data
|
||||
|
||||
proc setData*[T](s: Selector[T], fd: SocketHandle|int, data: T): bool =
|
||||
let fdi = int(fd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue