Skip to content

Conversation

@fabianfett
Copy link
Member

RedisConnection.Configuration.defaultPort is currently unprotected shared mutable state. To ensure thread safety this patch adds an atomic to back this property. Since setting the defaultPort doesn't make much sense for adopters, we deprecate the setter. Lastly we mark RedisConnection.Configuration as Sendable.

`RedisConnection.Configuration.defaultPort` is currently unprotected shared mutable state. To ensure thread safety this patch adds an atomic to back this property. Further we mark `RedisConnection.Configuration` as `Sendable`.
@fabianfett fabianfett added the 🔨 semver/patch No public API change. label Jul 8, 2023
@fabianfett fabianfett requested a review from Joannis July 8, 2023 09:45
@fabianfett fabianfett added 🆕 semver/minor Adds new public API. and removed 🔨 semver/patch No public API change. labels Jul 8, 2023
@fabianfett fabianfett merged commit 43ea6af into swift-server:main Jul 8, 2023
@fabianfett fabianfett deleted the ff-make-RedisConnection.Configuration-thread-safe branch July 8, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants