Skip to content

Commit 9f90100

Browse files
committed
update to nio-based worker protocol
1 parent f362d4c commit 9f90100

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PostgreSQL/Database/PostgreSQLDatabase.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public final class PostgreSQLDatabase: Database {
3232
}
3333

3434
/// A connection created by a `PostgreSQLDatabase`.
35-
extension PostgreSQLConnection: DatabaseConnection { }
35+
extension PostgreSQLConnection: DatabaseConnection, BasicWorker { }
3636

3737
extension DatabaseIdentifier {
3838
/// Default identifier for `PostgreSQLDatabase`.

Tests/PostgreSQLTests/PostgreSQLConnectionTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ extension PostgreSQLConnection {
298298
/// Creates a test event loop and psql client.
299299
static func makeTest() throws -> PostgreSQLConnection {
300300
let group = MultiThreadedEventLoopGroup(numThreads: 1)
301-
let client = try PostgreSQLConnection.connect(on: wrap(group.next())) { error in
301+
let client = try PostgreSQLConnection.connect(on: group) { error in
302302
XCTFail("\(error)")
303303
}.wait()
304304
_ = try client.authenticate(username: "postgres").wait()

0 commit comments

Comments
 (0)