Skip to content

Commit 100b04b

Browse files
authored
move elg provider as a nested class of the client (AsyncHttpClient#40)
motivation: elg provider is likely to be a common pattern in client libraries (eg db drivers), lets prevent type clashes changes: make EventLoopGroupProvider a nested class of HTTPClient
1 parent 93682ab commit 100b04b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/NIOHTTPClient/SwiftNIOHTTP.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ import NIOConcurrencyHelpers
1818
import NIOHTTP1
1919
import NIOSSL
2020

21-
public enum EventLoopGroupProvider {
22-
case shared(EventLoopGroup)
23-
case createNew
24-
}
25-
2621
public class HTTPClient {
2722
public let eventLoopGroup: EventLoopGroup
2823
let eventLoopGroupProvider: EventLoopGroupProvider
@@ -201,6 +196,11 @@ public class HTTPClient {
201196
}
202197
}
203198

199+
public enum EventLoopGroupProvider {
200+
case shared(EventLoopGroup)
201+
case createNew
202+
}
203+
204204
public struct Timeout {
205205
public var connect: TimeAmount?
206206
public var read: TimeAmount?

0 commit comments

Comments
 (0)