浏览代码

fix 借用问题。

skyffire 1 年之前
父节点
当前提交
89b8b0ec34
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;
                     });
 
                     // 更新中控账户相关信息