mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
feat: change async-bb8 fork and tokio spawn for concurrent database calls (#2774)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: akshay-97 <adiosphobian@gmail.com> Co-authored-by: akshay.s <akshay.s@juspay.in> Co-authored-by: Kartikeya Hegde <karthikey.hegde@juspay.in>
This commit is contained in:
@ -189,7 +189,7 @@ pub async fn start_server(conf: settings::Settings) -> ApplicationResult<Server>
|
||||
errors::ApplicationError::ApiClientError(error.current_context().clone())
|
||||
})?,
|
||||
);
|
||||
let state = routes::AppState::new(conf, tx, api_client).await;
|
||||
let state = Box::pin(routes::AppState::new(conf, tx, api_client)).await;
|
||||
let request_body_limit = server.request_body_limit;
|
||||
let server = actix_web::HttpServer::new(move || mk_app(state.clone(), request_body_limit))
|
||||
.bind((server.host.as_str(), server.port))?
|
||||
|
||||
Reference in New Issue
Block a user