Skip to content

Commit dcfe5f0

Browse files
committed
Remove an unused argument in PostgreSQLDatabase.init.
1 parent 1823a1c commit dcfe5f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PostgreSQL/Database/PostgreSQLDatabase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public final class PostgreSQLDatabase: Database {
99
public var logger: PostgreSQLLogger?
1010

1111
/// Creates a new `PostgreSQLDatabase`.
12-
public init(config: PostgreSQLDatabaseConfig, on worker: Worker) {
12+
public init(config: PostgreSQLDatabaseConfig) {
1313
self.config = config
1414
}
1515

Sources/PostgreSQL/PostgreSQLProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ extension PostgreSQLDatabaseConfig: ServiceType {
3636
extension PostgreSQLDatabase: ServiceType {
3737
/// See `ServiceType.makeService(for:)`
3838
public static func makeService(for worker: Container) throws -> PostgreSQLDatabase {
39-
return try .init(config: worker.make(), on: worker)
39+
return try .init(config: worker.make())
4040
}
4141
}

0 commit comments

Comments
 (0)