Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add @unchecked Sendable conformance to HttpTelemetry #810

Merged
merged 3 commits into from
Sep 7, 2024

Conversation

jbelkins
Copy link
Contributor

@jbelkins jbelkins commented Sep 6, 2024

Issue #

awslabs/aws-sdk-swift#1705

Description of changes

  • The three non-@Sendable properties on HttpTelemetry have been protected from simultaneous access with a recursive lock.
  • The HTTP clients have been modified to use the updateHTTPMetricsUsage() method for updating HTTP metrics in a single access rather than piecemeal property updates.
  • Since all properties on HttpTelemetry are now either themselves @Sendable or have been rendered thread-safe with the NSRecursiveLock, the HttpTelemetry class is marked as @unchecked Sendable.

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jbelkins jbelkins marked this pull request as ready for review September 6, 2024 22:53
@jbelkins jbelkins merged commit f259354 into main Sep 7, 2024
27 checks passed
@jbelkins jbelkins deleted the jbe/manual_sendable_telemetry branch September 7, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants