no need to shutdown anymore
- Commit
6f146d076b39273d3b83942f038be5f25220c4ca- Author
- Kabir Oberai <[email protected]>
- When
- 2024-12-10 13:44 UTC (1 year ago)
- Parents
33ceb03
Diff
Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift
diff --git a/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift b/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swiftindex 8586892..45a6487 100644--- a/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift+++ b/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift@@ -165,11 +165,6 @@ final class AsyncHTTPClientFactory: HTTPClientFactory { } static let shared = AsyncHTTPClientFactory() - func shutdown() {- // swiftlint:disable:next force_try- try! client.syncShutdown()- }- func makeClient() -> HTTPClientProtocol { client } } #endif
Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift
diff --git a/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift b/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swiftindex 062e8cd..01ee097 100644--- a/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift+++ b/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift@@ -78,7 +78,6 @@ public enum WebSocketMessage: Sendable { } public protocol HTTPClientFactory: Sendable {- func shutdown() // client is invalidated after this func makeClient() -> HTTPClientProtocol }
Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift
diff --git a/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift b/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swiftindex 4587b54..dfa5de2 100644--- a/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift+++ b/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift@@ -18,7 +18,6 @@ final class URLHTTPClientFactory: HTTPClientFactory { private let client = Client() - func shutdown() {} func makeClient() -> HTTPClientProtocol { client } }
Sources/SupersignCLISupport/SupersignCommand.swift
diff --git a/Sources/SupersignCLISupport/SupersignCommand.swift b/Sources/SupersignCLISupport/SupersignCommand.swiftindex d42b3e6..9ff0a5a 100644--- a/Sources/SupersignCLISupport/SupersignCommand.swift+++ b/Sources/SupersignCLISupport/SupersignCommand.swift@@ -21,7 +21,6 @@ public enum SupersignCLI { public static func run(configuration: Configuration, arguments: [String]? = nil) async throws { _config = configuration- defer { defaultHTTPClientFactory.shutdown() } do { var command = try SupersignCommand.parseAsRoot(arguments) if var asyncCommand = command as? AsyncParsableCommand {