mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
fix: impl Drop for RedisConnectionPool (#1051)
This commit is contained in:
@ -39,13 +39,11 @@ async fn main() -> ApplicationResult<()> {
|
||||
logger::info!("Application started [{:?}] [{:?}]", conf.server, conf.log);
|
||||
|
||||
#[allow(clippy::expect_used)]
|
||||
let (server, mut state) = router::start_server(conf)
|
||||
let server = router::start_server(conf)
|
||||
.await
|
||||
.expect("Failed to create the server");
|
||||
let _ = server.await;
|
||||
|
||||
state.store.close().await;
|
||||
|
||||
Err(ApplicationError::from(std::io::Error::new(
|
||||
std::io::ErrorKind::Other,
|
||||
"Server shut down",
|
||||
|
||||
Reference in New Issue
Block a user