Skip to content

Commit

Permalink
Merge pull request #65 from alaviss/sandwich-fix
Browse files Browse the repository at this point in the history
ioqueue(linux): make queue a concrete procedure

Solves sandwich issues found during development of disruptek/httpleast#2
  • Loading branch information
alaviss authored Feb 14, 2024
2 parents 0006476 + 297378b commit 12c5957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/private/ioqueue_linux.nim
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func toEvents(ev: Ev): set[Event] =
if ev.has EvPri:
result.incl PriorityRead

proc queue(eq: var EventQueueImpl, cont: Continuation, fd: AnyFD, event: ReadyEvent) =
proc queue(eq: var EventQueueImpl, cont: Continuation, fd: FD, event: ReadyEvent) =
var epEvent = epoll.Event(events: toEv({event}), data: Data(fd: fd.cint))
# If adding `fd` to epoll fails
if eq.epoll.fd.ctl(CtlAdd, fd, epEvent) == -1:
Expand Down

0 comments on commit 12c5957

Please sign in to comment.