Skip to content

Commit 35b3451

Browse files
committed
ignore close future result
1 parent 2cdd00a commit 35b3451

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/PostgresKit/PostgresConnectionSource.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public struct PostgresConnectionSource: ConnectionPoolSource {
2323
username: self.configuration.username,
2424
database: self.configuration.database,
2525
password: self.configuration.password
26-
).flatMapError { error in
27-
return conn.close()
28-
.flatMapThrowing { throw error }
26+
).flatMapErrorThrowing { error in
27+
_ = conn.close()
28+
throw error
2929
}.map { conn }
3030
}
3131
}

0 commit comments

Comments
 (0)