Explorar el Código

不要spawn看看

skyffire hace 1 año
padre
commit
695641628a
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      standard/src/gate_swap.rs

+ 1 - 4
standard/src/gate_swap.rs

@@ -511,10 +511,7 @@ impl Platform for GateSwap {
     // 指令下单
     async fn command_order(&mut self, order_command: &mut OrderCommand, trace_stack: &TraceStack) {
         let ins = trace_stack.ins.clone();
-        spawn(async move {
-            // 执行一个非常快的操作,或者什么都不做
-            TraceStack::show_delay(&ins);
-        });
+        TraceStack::show_delay(&ins);
         // 撤销订单
         for item in order_command.cancel.keys() {
             let order_id = order_command.cancel[item].get(1).unwrap().clone();