Browse Source

fix 借用问题。

skyffire 1 year ago
parent
commit
89b8b0ec34
1 changed files with 2 additions and 1 deletions
  1. 2 1
      strategy/src/core.rs

+ 2 - 1
strategy/src/core.rs

@@ -664,8 +664,9 @@ impl Core {
                     // 先更新本地记录再发单。
                     self._update_local_orders(&mut orders);
                     // info!("订单指令:{:?}", orders);
+                    let mut ts = trace_stack.clone();
                     spawn(async move {
-                        platform_rest_fb.command_order(&mut orders, trace_stack).await;
+                        platform_rest_fb.command_order(&mut orders, &mut ts).await;
                     });
 
                     // 更新中控账户相关信息