diff --git a/common/gateway-stats-storage/src/lib.rs b/common/gateway-stats-storage/src/lib.rs index 5aa0194da9..b9b90537e9 100644 --- a/common/gateway-stats-storage/src/lib.rs +++ b/common/gateway-stats-storage/src/lib.rs @@ -59,7 +59,6 @@ impl PersistentStatsStorage { if let Err(err) = sqlx::migrate!("./migrations").run(&connection_pool).await { error!("Failed to perform migration on the SQLx database: {err}"); - connection_pool.close().await; return Err(err.into()); } diff --git a/common/gateway-storage/src/lib.rs b/common/gateway-storage/src/lib.rs index 1d91576ccb..2d05d43fe7 100644 --- a/common/gateway-storage/src/lib.rs +++ b/common/gateway-storage/src/lib.rs @@ -108,7 +108,6 @@ impl GatewayStorage { if let Err(err) = sqlx::migrate!("./migrations").run(&connection_pool).await { error!("Failed to perform migration on the SQLx database: {err}"); - connection_pool.close().await; return Err(err.into()); }