Explorar el Código

fix 借用问题。

skyffire hace 1 año
padre
commit
89b8b0ec34
Se han modificado 1 ficheros con 2 adiciones y 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;
                     });
 
                     // 更新中控账户相关信息