You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve got a bit of a bug with MongoKitten’s Cluster.swift. It’s throwing a bunch of compiler errors about the Sendable protocol. Specifically, the DNSClient and ResourceRecord types aren’t following the rules.
Here’s how you can reproduce the issue:
Add MongoKitten (v7.9.5) to your project.
Run the code.
Watch the compiler errors in Cluster.swift.
The code should compile without these errors. The DNSClient and ResourceRecord types should be Sendable.
I’ve also found the errors in Cluster.swift:
Line 321: Type ‘DNSClient’ doesn’t conform to the ‘Sendable’ protocol
Line 323: Type ‘DNSClient’ doesn’t conform to the ‘Sendable’ protocol
Line 335: Type ‘ResourceRecord<SRVRecord>’ doesn’t conform to the ‘Sendable’ protocol
This bug seems to be linked to Swift concurrency stuff. I think it might need an update to the DNSClient dependency.
The text was updated successfully, but these errors were encountered:
I’ve got a bit of a bug with MongoKitten’s Cluster.swift. It’s throwing a bunch of compiler errors about the Sendable protocol. Specifically, the DNSClient and ResourceRecord types aren’t following the rules.
Here’s how you can reproduce the issue:
The code should compile without these errors. The DNSClient and ResourceRecord types should be Sendable.
I’ve also found the errors in Cluster.swift:
Type ‘DNSClient’ doesn’t conform to the ‘Sendable’ protocol
Type ‘DNSClient’ doesn’t conform to the ‘Sendable’ protocol
Type ‘ResourceRecord<SRVRecord>’ doesn’t conform to the ‘Sendable’ protocol
This bug seems to be linked to Swift concurrency stuff. I think it might need an update to the DNSClient dependency.
The text was updated successfully, but these errors were encountered: