Clean up
This commit is contained in:
committed by
Bogdan-Ștefan Neacşu
parent
0a2fd8e30d
commit
a5d2ca139b
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user