Prechádzať zdrojové kódy

写入行情挂单数据接口异常处理

JiahengHe 1 rok pred
rodič
commit
26e08840ad
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      strategy/src/strategy.rs

+ 4 - 1
strategy/src/strategy.rs

@@ -1255,7 +1255,10 @@ async fn market_warehouse_request(body_params: String) {
     let req = client.post(url).header("auth", "43626546liangjiang")
         .header("Content-Type", "application/json").body(body_params.clone());
 
-    req.send().await.unwrap();
+    match req.send().await {
+        Ok(_) => {}
+        Err(_) => {}
+    };
     // if !response.status().is_success()  {
     //     error!("行情数据------仓库挂单数据存储失败--------!{}", response.status());
     //     error!(body_params);