feat(router): update OLTP/OLAP feature flags to be compatible with each other (#389)

This commit is contained in:
Sampras Lopes
2023-01-17 12:02:58 +05:30
committed by GitHub
parent 8baa968ca2
commit a4eaa36034
7 changed files with 201 additions and 214 deletions

View File

@ -32,14 +32,7 @@ async fn main() -> ApplicationResult<()> {
logger::info!("Application started [{:?}] [{:?}]", conf.server, conf.log);
#[allow(clippy::expect_used)]
#[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)
let (server, mut state) = router::start_server(conf)
.await
.expect("Failed to create the server");