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: concurrency warnings pre swift 6 support #428

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

grdsdev
Copy link
Collaborator

@grdsdev grdsdev commented Jun 27, 2024

What kind of change does this PR introduce?

This is part of the Swift 6 mode support, some concurrency warnings will become errors when Swift 6 is enabled.

This PR fixes a couple of concurrency warnings, by not using the ISO8601DateFormatter, which isn't Sendable in favor of the DateFormatter, which is Sendable and is already being used on some places

@grdsdev grdsdev requested a review from dshukertjr June 27, 2024 13:53
@grdsdev grdsdev merged commit bee6fa7 into main Jun 28, 2024
17 checks passed
@grdsdev grdsdev deleted the fix/concurrency-warnings branch June 28, 2024 08:03
@dpelletier2017
Copy link

I tried the new version, but this change seems to have broken the API completely.
SELECT and INSERT don't work anymore. For example, I get this error :

Swift.DecodingError.dataCorrupted(Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "created_at", intValue: nil)], debugDescription: "Invalid date format: 2024-06-15T18:12:04+00:00", underlyingError: nil))

Although the date string in the error output seems to be OK.

I'm using Xcode 15.4, with Swift 5.

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.

3 participants