We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cdd00a commit 35b3451Copy full SHA for 35b3451
Sources/PostgresKit/PostgresConnectionSource.swift
@@ -23,9 +23,9 @@ public struct PostgresConnectionSource: ConnectionPoolSource {
23
username: self.configuration.username,
24
database: self.configuration.database,
25
password: self.configuration.password
26
- ).flatMapError { error in
27
- return conn.close()
28
- .flatMapThrowing { throw error }
+ ).flatMapErrorThrowing { error in
+ _ = conn.close()
+ throw error
29
}.map { conn }
30
}
31
0 commit comments