Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty committed Mar 9, 2024
1 parent a84ba5c commit 0b7fec7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions FlyingSocks/Sources/SocketPool+ePoll.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,10 @@ public extension AsyncSocketPool where Self == SocketPool<ePoll> {
}

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<Poll> {
static func poll(interval: Poll.Interval = .seconds(0.01), logger: some Logging = .disabled) -> SocketPool<Poll> {
.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
Expand Down

0 comments on commit 0b7fec7

Please sign in to comment.