Skip to content

Commit

Permalink
flow:fix log .
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Dec 27, 2024
1 parent 59f2a2f commit 32f97fb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions backend/middlewares/flow/src/serv/clients/log_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ pub struct LogParamExt {
pub delete: Option<bool>,
}


pub enum LogParamExtSceneKind {
ApprovalFlow,
Dynamic,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -149,10 +147,8 @@ impl FlowLogClient {
&ctx_clone,
push_clone, // 使用克隆的 push 变量
)
.await
.unwrap();
.await;
}

});
task_handle.await.unwrap();
Ok(())
Expand Down

0 comments on commit 32f97fb

Please sign in to comment.