Skip to content

Commit cf001fe

Browse files
committed
Drive pool size via env variable (optional)
1 parent 77b23e8 commit cf001fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/AppTests/Helpers/DatabasePool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ actor DatabasePool {
3333
}
3434
}
3535

36-
static let shared = DatabasePool(maxCount: 8)
36+
static let shared = DatabasePool(maxCount: Environment.get("DATABASEPOOL_SIZE").flatMap(Int.init) ?? 4)
3737

3838
var maxCount: Int
3939

0 commit comments

Comments
 (0)