From 4ef916666ed14dbec4adb716fce79dc04af2f15e Mon Sep 17 00:00:00 2001 From: CookiePieWw Date: Fri, 20 Dec 2024 18:30:59 +0800 Subject: [PATCH] chore: make ci happy --- src/meta-srv/src/election/postgres.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/meta-srv/src/election/postgres.rs b/src/meta-srv/src/election/postgres.rs index 52bf41825eca..ff368aeb09d6 100644 --- a/src/meta-srv/src/election/postgres.rs +++ b/src/meta-srv/src/election/postgres.rs @@ -308,9 +308,7 @@ mod tests { .await .context(PostgresExecutionSnafu)?; tokio::spawn(async move { - if let Err(e) = connection.await { - eprintln!("connection error: {}", e); - } + connection.await.context(PostgresExecutionSnafu).unwrap(); }); Ok(client) }