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

Annotate the Todo model accordingly with Fluent's recent Sendable update #129

Closed
wants to merge 1 commit into from

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented Apr 29, 2024

As per vapor/vapor#3180 and vapor/fluent-kit#601, the recent update to Fluent to add (nearly but not totally complete) Sendable-correctness results in a new warning of the form Stored property '_id' of 'Sendable'-conforming class 'Todo' is mutable for all types conforming to Fields, Schema, and/or Model. This adds the appropriate annotation to the template's Todo model for sample purposes.

@gwynne gwynne requested review from 0xTim, MahdiBM and ptoffy April 29, 2024 21:49
@@ -1,7 +1,7 @@
import Fluent
import Vapor

final class Todo: Model, Content {
final class Todo: Model, Content, @unchecked Sendable {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a comment explaining why, at least?

@gwynne
Copy link
Member Author

gwynne commented Apr 29, 2024

Closing in favor of the much less lazy and thus higher quality #130

@gwynne gwynne closed this Apr 29, 2024
@gwynne gwynne deleted the gwynne-patch-1 branch April 29, 2024 22:19
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