From a52e268cb967300913267713ee55c7c7cd2b20fa Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Mon, 11 Dec 2023 18:58:42 +0100 Subject: [PATCH] [Examples] Remove an extension that was only needed temporarily --- Examples/hello-world-async-http-client-example/Package.swift | 4 ++-- .../HelloWorldAsyncHTTPClient/HelloWorldAsyncHTTPClient.swift | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Examples/hello-world-async-http-client-example/Package.swift b/Examples/hello-world-async-http-client-example/Package.swift index ed3703ff..2ceb8f21 100644 --- a/Examples/hello-world-async-http-client-example/Package.swift +++ b/Examples/hello-world-async-http-client-example/Package.swift @@ -19,8 +19,8 @@ let package = Package( platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6), .visionOS(.v1)], dependencies: [ .package(url: "https://github.com/apple/swift-openapi-generator", exact: "1.0.0-alpha.1"), - .package(url: "https://github.com/apple/swift-openapi-runtime", exact: "1.0.0-alpha.1"), - .package(url: "https://github.com/swift-server/swift-openapi-async-http-client", exact: "1.0.0-alpha.1"), + .package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.0.0"), + .package(url: "https://github.com/swift-server/swift-openapi-async-http-client", from: "1.0.0"), ], targets: [ .executableTarget( diff --git a/Examples/hello-world-async-http-client-example/Sources/HelloWorldAsyncHTTPClient/HelloWorldAsyncHTTPClient.swift b/Examples/hello-world-async-http-client-example/Sources/HelloWorldAsyncHTTPClient/HelloWorldAsyncHTTPClient.swift index 70338db9..5319cd01 100644 --- a/Examples/hello-world-async-http-client-example/Sources/HelloWorldAsyncHTTPClient/HelloWorldAsyncHTTPClient.swift +++ b/Examples/hello-world-async-http-client-example/Sources/HelloWorldAsyncHTTPClient/HelloWorldAsyncHTTPClient.swift @@ -22,6 +22,3 @@ import Foundation print(try response.ok.body.json.message) } } - -// TODO: Remove this once 1.0.0 is released with https://github.com/swift-server/swift-openapi-async-http-client/pull/32. -extension AsyncHTTPClientTransport { init() { self.init(configuration: .init()) } }