Explorar el Código

等两秒,等中控反应过来

skyffire hace 1 año
padre
commit
aaa1e1fc3c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/main.rs

+ 2 - 0
src/main.rs

@@ -91,6 +91,8 @@ async fn main() {
     let mut quant = quant_arc.lock().await;
     quant.exit().await;
     info!("程序已退出!为以防万一,请再次检查仓位和订单!");
+    // 等两秒,等中控反应过来
+    tokio::time::sleep(Duration::from_secs(2)).await;
     // 强制退出
     std::process::exit(0);
 }