Skip to content

Commit

Permalink
spi-plugin:fix .
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Nov 17, 2023
1 parent 8eb54f9 commit 9c0c3a8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion services/bios-all/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ bios-spi-plugin = { path = "../../spi/spi-plugin" }
bios-spi-reldb = { path = "../../spi/spi-reldb" }
bios-spi-search = { path = "../../spi/spi-search" }
bios-spi-stats = { path = "../../spi/spi-stats" }
bios-spi-conf = { path = "../../spi/spi-conf" }
#bios-spi-conf = { path = "../../spi/spi-conf" }

bios-mw-schedule = { path = "../../middleware/schedule" }
bios-mw-flow = { path = "../../middleware/flow" }
Expand Down
18 changes: 9 additions & 9 deletions services/bios-all/src/initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use tardis::web::web_server::TardisWebServer;
pub async fn init(web_server: &TardisWebServer) -> TardisResult<()> {
bios_auth::auth_initializer::init(web_server).await?;
bios_iam::iam_initializer::init(web_server).await?;
bios_reach::reach_initializer::init(
web_server,
SendChannelMap::new()
.with_arc_channel(bios_client_hwsms::SmsClient::from_reach_config())
.with_arc_channel(tardis::TardisFuns::mail_by_module_or_default(bios_reach::reach_consts::MODULE_CODE)),
)
.await?;
// bios_reach::reach_initializer::init(
// web_server,
// SendChannelMap::new()
// .with_arc_channel(bios_client_hwsms::SmsClient::from_reach_config())
// .with_arc_channel(tardis::TardisFuns::mail_by_module_or_default(bios_reach::reach_consts::MODULE_CODE)),
// )
// .await?;

bios_spi_cache::cache_initializer::init(web_server).await?;
bios_spi_graph::graph_initializer::init(web_server).await?;
Expand All @@ -22,9 +22,9 @@ pub async fn init(web_server: &TardisWebServer) -> TardisResult<()> {
bios_spi_reldb::reldb_initializer::init(web_server).await?;
bios_spi_search::search_initializer::init(web_server).await?;
bios_spi_stats::stats_initializer::init(web_server).await?;
bios_spi_conf::conf_initializer::init(web_server).await?;
// bios_spi_conf::conf_initializer::init(web_server).await?;

bios_mw_schedule::schedule_initializer::init(web_server).await?;
// bios_mw_schedule::schedule_initializer::init(web_server).await?;
bios_mw_flow::flow_initializer::init(web_server).await?;
Ok(())
}
3 changes: 2 additions & 1 deletion services/bios-all/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::env;
use tardis::basic::result::TardisResult;
use tardis::tokio;
use tardis::TardisFuns;
Expand All @@ -10,7 +11,7 @@ mod initializer;
///
#[tokio::main]
async fn main() -> TardisResult<()> {
// env::set_var("RUST_LOG", "debug,tardis=trace,sqlx=off,bios=bios-serv-all,hyper::proto=off,sqlparser::parser=off");
env::set_var("RUST_LOG", "debug,tardis=trace,sqlx=off,bios=bios-serv-all,hyper::proto=off,sqlparser::parser=off");
TardisFuns::init(Some("config")).await?;
let web_server = TardisFuns::web_server();
initializer::init(&web_server).await?;
Expand Down
2 changes: 1 addition & 1 deletion spi/spi-plugin/src/serv/plugin_api_serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ impl PluginApiServ {
let resp = Self::find_one_detail_item(
&PluginApiFilterReq {
basic: RbumBasicFilterReq {
code: Some(code.to_string()),
with_sub_own_paths: true,
..Default::default()
},
code: Some(code.to_string()),
..Default::default()
},
funs,
Expand Down

0 comments on commit 9c0c3a8

Please sign in to comment.