Conversation
… an error (#921) Co-authored-by: Sichan Yoo <chanyoo@amazon.com>
Package.resolved
Outdated
There was a problem hiding this comment.
Ignore this it will be removed
Package.swift
Outdated
| dependencies: { | ||
| var dependencies: [Package.Dependency] = [ | ||
| .package(url: "https://github.com/awslabs/aws-crt-swift.git", exact: "0.48.0"), | ||
| .package(url: "https://github.com/awslabs/aws-crt-swift.git", branch: "swift6-support"), |
Sources/ClientRuntime/Config/DefaultSDKRuntimeConfiguration.swift
Outdated
Show resolved
Hide resolved
Sources/ClientRuntime/Networking/Http/CRT/CRTClientEngine.swift
Outdated
Show resolved
Hide resolved
Sources/ClientRuntime/Networking/Http/CRT/CRTClientEngine.swift
Outdated
Show resolved
Hide resolved
Package.resolved
Outdated
| @@ -0,0 +1,33 @@ | |||
| { | |||
There was a problem hiding this comment.
Package.resolved should be deleted from this PR before merge
| private func take() -> CheckedContinuation<Response, Error>? { | ||
| lock.lock() | ||
| defer { lock.unlock() } | ||
| defer { continuation = nil } |
There was a problem hiding this comment.
Multiple defer statements execute in reverse order they are written, so this is correct, but for simplicity, why not just use one defer with two lines and return a temp var?
There was a problem hiding this comment.
I can change it to that if its preferred 👍 -- I wrote out both options and liked this one more.
| import enum AwsCommonRuntimeKit.EndpointProperty | ||
|
|
||
| public struct Endpoint: Hashable { | ||
| public struct Endpoint: Sendable, Equatable { |
There was a problem hiding this comment.
So we were using Endpoint equality but not hashability?
There was a problem hiding this comment.
Yeah we were never hashing this but I assume we marked it as Hashable since properties had [String: AnyHashable]
There was a problem hiding this comment.
Do we actually use endpoint equality though?
Issue #
Description of changes
propertiesnow is of typeEndpointPropertyas defined by CRT. A wrapperEndpointPropertyValueis defined to obfuscate CRT dependencyScope
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.