Explorar o código

fix 借用问题。

skyffire hai 1 ano
pai
achega
89b8b0ec34
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
                     });
 
                     // 更新中控账户相关信息