From 3e195a24cc1552b24a78da6e8bf7ba1093afad94 Mon Sep 17 00:00:00 2001 From: David Nadoba Date: Wed, 6 Sep 2023 13:12:07 +0100 Subject: [PATCH] Support custom `backgroundActivityLogger` with using the default ELG. --- Sources/AsyncHTTPClient/HTTPClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncHTTPClient/HTTPClient.swift b/Sources/AsyncHTTPClient/HTTPClient.swift index 53da87e75..f39a86c95 100644 --- a/Sources/AsyncHTTPClient/HTTPClient.swift +++ b/Sources/AsyncHTTPClient/HTTPClient.swift @@ -133,7 +133,7 @@ public class HTTPClient { /// - eventLoopGroup: The `EventLoopGroup` that the ``HTTPClient`` will use. /// - configuration: Client configuration. /// - backgroundActivityLogger: The `Logger` that will be used to log background any activity that's not associated with a request. - public required init(eventLoopGroup: any EventLoopGroup, + public required init(eventLoopGroup: any EventLoopGroup = HTTPClient.defaultEventLoopGroup, configuration: Configuration = Configuration(), backgroundActivityLogger: Logger) { self.eventLoopGroup = eventLoopGroup