Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

no need to shutdown anymore

Kabir Oberai6f146d076b39
diff --git a/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift b/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift
index 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
diff --git a/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift b/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift
index 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
}
diff --git a/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift b/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift
index 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 }
}
diff --git a/Sources/SupersignCLISupport/SupersignCommand.swift b/Sources/SupersignCLISupport/SupersignCommand.swift
index 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 {