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

DNSClient doesn’t conform to the Sendable protocol #350

Closed
vamsii777 opened this issue Nov 19, 2024 · 1 comment
Closed

DNSClient doesn’t conform to the Sendable protocol #350

vamsii777 opened this issue Nov 19, 2024 · 1 comment
Assignees
Labels

Comments

@vamsii777
Copy link
Contributor

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:

  1. Add MongoKitten (v7.9.5) to your project.
  2. Run the code.
  3. 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.

@vamsii777
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants