mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
feat(Core): gracefully shutdown router/scheduler if Redis is unavailable (#891)
Co-authored-by: prajjwal kumar <prajjwal.kumar@prajjwalkumar-DWKH9NPY4R.local> Co-authored-by: Nishant Joshi <nishant.joshi@juspay.in> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -42,7 +42,6 @@ async fn main() -> ApplicationResult<()> {
|
||||
let (server, mut state) = router::start_server(conf)
|
||||
.await
|
||||
.expect("Failed to create the server");
|
||||
|
||||
let _ = server.await;
|
||||
|
||||
state.store.close().await;
|
||||
|
||||
Reference in New Issue
Block a user