Skip to content

Commit

Permalink
flow:fix event.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Jan 18, 2024
1 parent 7573c88 commit 24c8cb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion middleware/flow/src/flow_initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use crate::{
pub async fn init(web_server: &TardisWebServer) -> TardisResult<()> {
let funs = flow_constants::get_tardis_inst();
init_db(funs).await?;
tokio::spawn(init_event());
init_api(web_server).await
}

Expand Down Expand Up @@ -853,7 +854,8 @@ pub async fn init_flow_model(funs: &TardisFunsInst, ctx: &TardisContext) -> Tard
Ok(())
}

async fn init_event(funs: TardisFunsInst) -> TardisResult<()> {
async fn init_event() -> TardisResult<()> {
let funs = flow_constants::get_tardis_inst();
let conf = funs.conf::<FlowConfig>();
if let Some(event_config) = conf.event.as_ref() {
loop {
Expand Down

0 comments on commit 24c8cb6

Please sign in to comment.