Skip to content

Commit 4e74fef

Browse files
authored
Support custom backgroundActivityLogger with using the default ELG. (#711)
1 parent 75d7f63 commit 4e74fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AsyncHTTPClient/HTTPClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public class HTTPClient {
133133
/// - eventLoopGroup: The `EventLoopGroup` that the ``HTTPClient`` will use.
134134
/// - configuration: Client configuration.
135135
/// - backgroundActivityLogger: The `Logger` that will be used to log background any activity that's not associated with a request.
136-
public required init(eventLoopGroup: any EventLoopGroup,
136+
public required init(eventLoopGroup: any EventLoopGroup = HTTPClient.defaultEventLoopGroup,
137137
configuration: Configuration = Configuration(),
138138
backgroundActivityLogger: Logger) {
139139
self.eventLoopGroup = eventLoopGroup

0 commit comments

Comments
 (0)