From 0b7fec7920d49477949f082051105bfc04b605ea Mon Sep 17 00:00:00 2001 From: Simon Whitty Date: Sat, 9 Mar 2024 13:03:16 +1100 Subject: [PATCH] a --- FlyingSocks/Sources/SocketPool+ePoll.swift | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/FlyingSocks/Sources/SocketPool+ePoll.swift b/FlyingSocks/Sources/SocketPool+ePoll.swift index d2efd173..0e46582b 100644 --- a/FlyingSocks/Sources/SocketPool+ePoll.swift +++ b/FlyingSocks/Sources/SocketPool+ePoll.swift @@ -38,22 +38,10 @@ public extension AsyncSocketPool where Self == SocketPool { } private init(maxEvents limit: Int, logger: some Logging = .disabled) { - self.init(queue: FlyingSocks.ePoll(maxEvents: limit, logger: logger), logger: logger) + .init(queue: FlyingSocks.ePoll(maxEvents: limit, logger: logger), logger: logger) } } -public extension AsyncSocketPool where Self == SocketPool { - static func poll(interval: Poll.Interval = .seconds(0.01), logger: some Logging = .disabled) -> SocketPool { - .init(interval: interval, logger: logger) - } - - init(interval: Poll.Interval = .seconds(0.01), logger: some Logging) { - self.init(queue: Poll(interval: interval, logger: logger), logger: logger) - } -} - - - public struct ePoll: EventQueue { private(set) var file: Socket.FileDescriptor