浏览代码

关闭代理配置

JiahengHe 1 年之前
父节点
当前提交
5736c114a0
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 3 3
      exchanges/src/phemex_swap_rest.rs
  2. 2 2
      exchanges/tests/phemex_swap_test.rs

+ 3 - 3
exchanges/src/phemex_swap_rest.rs

@@ -11,7 +11,7 @@ use serde_json::{json, Value};
 use tracing::{error, info, trace};
 
 use crate::http_tool::RestTool;
-use crate::proxy;
+// use crate::proxy;
 use crate::response_base::ResponseData;
 
 #[derive(Clone, Debug)]
@@ -351,10 +351,10 @@ impl PhemexSwapRest {
 
 
         let client = if is_login {
-            proxy::ParsingDetail::http_enable_proxy(Some("phemex"));
+            // proxy::ParsingDetail::http_enable_proxy(Some("phemex"));
             Client::new()
         } else {
-            proxy::ParsingDetail::http_enable_proxy(None);
+            // proxy::ParsingDetail::http_enable_proxy(None);
             Client::new()
         };
         let request_builder = match request_type.as_str() {

+ 2 - 2
exchanges/tests/phemex_swap_test.rs

@@ -10,8 +10,8 @@ use exchanges::phemex_swap_rest::PhemexSwapRest;
 use exchanges::phemex_swap_ws::{PhemexSwapLogin, PhemexSwapSubscribeType, PhemexSwapWs, PhemexSwapWsType};
 use exchanges::response_base::ResponseData;
 
-const ACCESS_KEY: &str = "";
-const SECRET_KEY: &str = "";
+const ACCESS_KEY: &str = "cc3593f1-e5f5-4810-897d-29f5fec174c6";
+const SECRET_KEY: &str = "FB6QMZGsQMn1mrhTuoM2HkDVAJbeRaEgulHaApvD3EE2NWQ2ODljOS1mODdmLTRhMDgtYjliNy1kMDM0MWQ1MmZjNzA";
 
 
 #[tokio::test(flavor = "multi_thread", worker_threads = 2)]