From 297378bbe7ee3c501d7dd9fefd060d4c52409b5f Mon Sep 17 00:00:00 2001 From: Leorize Date: Tue, 13 Feb 2024 18:51:43 -0600 Subject: [PATCH] ioqueue(linux): make queue a concrete procedure queue() being a generic caused trouble in generic sandwich prone cases. queue() has not needed to be a generic taking AnyFD for quite awhile now, so this fix is simply a prototype change. --- src/sys/private/ioqueue_linux.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/private/ioqueue_linux.nim b/src/sys/private/ioqueue_linux.nim index 3fc1625..b5ba36c 100644 --- a/src/sys/private/ioqueue_linux.nim +++ b/src/sys/private/ioqueue_linux.nim @@ -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: