Skip to content

Commit

Permalink
chore: set acquire_timeout to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed May 21, 2024
1 parent d7ade3c commit 797d672
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn generate_create_table_expr<R: Rng + 'static>(rng: &mut R) -> CreateTableExpr
async fn connect_mysql(addr: &str) -> Pool<MySql> {
loop {
match MySqlPoolOptions::new()
.acquire_timeout(Duration::from_secs(30))
.acquire_timeout(Duration::from_secs(60))
.connect(&format!("mysql://{addr}/public"))
.await
{
Expand Down

0 comments on commit 797d672

Please sign in to comment.