From c2f34d2fc9143fb6e543522ad49492d62e7ed16d Mon Sep 17 00:00:00 2001 From: Joe Heck Date: Sat, 2 Dec 2023 12:03:29 -0800 Subject: [PATCH] fixes internal typo in source parameter --- Sources/OpenAPIURLSession/URLSessionTransport.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/OpenAPIURLSession/URLSessionTransport.swift b/Sources/OpenAPIURLSession/URLSessionTransport.swift index 531c967..189557b 100644 --- a/Sources/OpenAPIURLSession/URLSessionTransport.swift +++ b/Sources/OpenAPIURLSession/URLSessionTransport.swift @@ -82,14 +82,14 @@ public struct URLSessionTransport: ClientTransport { case streaming(requestBodyStreamBufferSize: Int, responseBodyStreamWatermarks: (low: Int, high: Int)) } - var implemenation: Implementation + var implementation: Implementation init(session: URLSession = .shared, implementation: Implementation = .platformDefault) { self.session = session if case .streaming = implementation { precondition(Implementation.platformSupportsStreaming, "Streaming not supported on platform") } - self.implemenation = implementation + self.implementation = implementation } } @@ -111,7 +111,7 @@ public struct URLSessionTransport: ClientTransport { public func send(_ request: HTTPRequest, body requestBody: HTTPBody?, baseURL: URL, operationID: String) async throws -> (HTTPResponse, HTTPBody?) { - switch self.configuration.implemenation { + switch self.configuration.implementation { case .streaming(let requestBodyStreamBufferSize, let responseBodyStreamWatermarks): #if canImport(Darwin) guard #available(macOS 12, iOS 15, tvOS 15, watchOS 8, *) else {