From a5d2ca139b8c24a3c8bac88fb0bf529d02246dbf Mon Sep 17 00:00:00 2001 From: Andrej Mihajlov Date: Mon, 2 Jun 2025 18:59:17 +0200 Subject: [PATCH] Clean up --- common/gateway-stats-storage/src/lib.rs | 1 - common/gateway-storage/src/lib.rs | 1 - 2 files changed, 2 deletions(-) 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()); }