mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
feat: separate olap oltp (#348)
This commit is contained in:
committed by
GitHub
parent
6a211d6c29
commit
8c5eab8499
@ -9,7 +9,6 @@ use structopt::StructOpt;
|
||||
async fn main() -> ApplicationResult<()> {
|
||||
// get commandline config before initializing config
|
||||
let cmd_line = CmdLineConf::from_args();
|
||||
|
||||
if let Some(Subcommand::GenerateOpenapiSpec) = cmd_line.subcommand {
|
||||
let file_path = "openapi/generated.json";
|
||||
#[allow(clippy::expect_used)]
|
||||
@ -33,7 +32,14 @@ async fn main() -> ApplicationResult<()> {
|
||||
logger::info!("Application started [{:?}] [{:?}]", conf.server, conf.log);
|
||||
|
||||
#[allow(clippy::expect_used)]
|
||||
let (server, mut state) = router::start_server(conf)
|
||||
#[cfg(not(feature = "olap"))]
|
||||
let (server, mut state) = router::start_oltp_server(conf)
|
||||
.await
|
||||
.expect("Failed to create the server");
|
||||
|
||||
#[allow(clippy::expect_used)]
|
||||
#[cfg(feature = "olap")]
|
||||
let (server, mut state) = router::start_olap_server(conf)
|
||||
.await
|
||||
.expect("Failed to create the server");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user