mirror of https://github.com/buster-so/buster.git
Merge pull request #593 from buster-so/devin/1753191156-remove-custom-connect-timeout
Remove custom connect_timeout parameter from Redshift connection
This commit is contained in:
commit
6d4ce7ece5
|
@ -15,8 +15,7 @@ pub async fn get_redshift_connection(credentials: &RedshiftCredentials) -> Resul
|
||||||
.username(credentials.username.as_str())
|
.username(credentials.username.as_str())
|
||||||
.password(credentials.password.as_str())
|
.password(credentials.password.as_str())
|
||||||
.database(&credentials.default_database)
|
.database(&credentials.default_database)
|
||||||
.extra_float_digits(2)
|
.extra_float_digits(2);
|
||||||
.options([("connect_timeout", "120")]); // 120 second connection timeout
|
|
||||||
|
|
||||||
let redshift_pool = match PgPoolOptions::new()
|
let redshift_pool = match PgPoolOptions::new()
|
||||||
.max_connections(1)
|
.max_connections(1)
|
||||||
|
|
Loading…
Reference in New Issue