File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ private func _withDatabase(_ databaseName: String,
268268 _ query: @Sendable @escaping ( PostgresClient) async throws -> Void ) async throws {
269269 let client = connect ( to: databaseName, details: details)
270270 try await run ( timeout: timeout) {
271+ #warning("This looks weird, review it")
271272 try await withThrowingTaskGroup { taskGroup in
272273 taskGroup. addTask { await client. run ( ) }
273274 taskGroup. addTask {
@@ -282,7 +283,7 @@ private func _withDatabase(_ databaseName: String,
282283
283284extension Environment {
284285 static var databasePoolSize : Int {
285- Environment . get ( " DATABASEPOOL_SIZE " ) . flatMap ( Int . init) ?? 8
286+ Environment . get ( " DATABASEPOOL_SIZE " ) . flatMap ( Int . init) ?? 4
286287 }
287288
288289 static var databasePoolTearDown : Bool {
You can’t perform that action at this time.
0 commit comments