Skip to content

Commit

Permalink
Fix Swift 6 support (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis authored Oct 25, 2024
1 parent e3a4053 commit ab34b48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/MongoKitten/MongoDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public class MongoDatabase: @unchecked Sendable {
}
}

extension EventLoopFuture {
extension EventLoopFuture where Value: Sendable {
internal func _mongoHop(to eventLoop: EventLoop?) -> EventLoopFuture<Value> {
guard let eventLoop = eventLoop else {
return self
Expand Down
4 changes: 2 additions & 2 deletions Tests/MongoKittenTests/CRUDTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import XCTest
import MongoCore

let dbName = "KittenTest"
fileprivate var initialized = false
@MainActor fileprivate var initialized = false

func initializeLoggingTracing() async throws {
@MainActor func initializeLoggingTracing() async throws {
if initialized { return }

// LoggingSystem.bootstrap { label in
Expand Down

0 comments on commit ab34b48

Please sign in to comment.