diff --git a/backend/middlewares/flow/src/serv/clients/log_client.rs b/backend/middlewares/flow/src/serv/clients/log_client.rs index 2801a0a5..a42b74e3 100644 --- a/backend/middlewares/flow/src/serv/clients/log_client.rs +++ b/backend/middlewares/flow/src/serv/clients/log_client.rs @@ -44,7 +44,6 @@ pub struct LogParamExt { pub delete: Option, } - pub enum LogParamExtSceneKind { ApprovalFlow, Dynamic, @@ -120,7 +119,7 @@ impl FlowLogClient { let task_handle = tokio::spawn(async move { let funs = flow_constants::get_tardis_inst(); if is_v2 { - Self::addv2_item( + let _ = Self::addv2_item( tag, content, ext, @@ -133,10 +132,9 @@ impl FlowLogClient { &ctx_clone, push_clone, // 使用克隆的 push 变量 ) - .await - .unwrap(); + .await; } else { - Self::add_item( + let _ = Self::add_item( tag, content, ext, @@ -149,10 +147,8 @@ impl FlowLogClient { &ctx_clone, push_clone, // 使用克隆的 push 变量 ) - .await - .unwrap(); + .await; } - }); task_handle.await.unwrap(); Ok(())