Skip to content

Commit 7e45efb

Browse files
committed
Remove the default query timeout since this might not be what's expected
1 parent 8acac22 commit 7e45efb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/PostgresConnectionPool/PoolConfiguration.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ public struct PoolConfiguration {
4040
/// Timeout for opening new connections to the PostgreSQL database, in seconds (default: 5 seconds).
4141
public let connectTimeout: TimeInterval
4242

43-
/// TImeout for individual database queries, in seconds (default: 10 seconds).
44-
/// Can be disabled by setting to `nil`.
43+
/// TImeout for individual database queries, in seconds (default: none).
4544
public let queryTimeout: TimeInterval?
4645

4746
/// The maximum number of open connections to the database (default: 10).
@@ -67,7 +66,7 @@ public struct PoolConfiguration {
6766
applicationName: String,
6867
connection: Connection,
6968
connectTimeout: TimeInterval = 5.0,
70-
queryTimeout: TimeInterval? = 10.0,
69+
queryTimeout: TimeInterval? = nil,
7170
poolSize: Int = 10,
7271
maxIdleConnections: Int? = nil)
7372
{

0 commit comments

Comments
 (0)