|
|
@@ -71,18 +71,12 @@ impl KucoinSwapWs {
|
|
|
) -> KucoinSwapWs {
|
|
|
return KucoinSwapWs::new_label("default-KucoinSwapWs".to_string(), is_colo, login_param, ws_type, sender).await;
|
|
|
}
|
|
|
- pub async fn new_label(label: String, is_colo: bool,
|
|
|
+ pub async fn new_label(label: String, _is_colo: bool,
|
|
|
login_param: BTreeMap<String, String>,
|
|
|
ws_type: KucoinWsType,
|
|
|
sender: Sender<ResponseData>,
|
|
|
) -> KucoinSwapWs
|
|
|
{
|
|
|
- if is_colo {
|
|
|
- info!("开启高速(未配置,走普通)通道");
|
|
|
- }else{
|
|
|
- info!("走普通通道");
|
|
|
- }
|
|
|
-
|
|
|
/*******走代理:根据环境变量配置来决定,如果配置了走代理,没有配置不走*******/
|
|
|
let parsing_detail = proxy::ParsingDetail::parsing_environment_variables();
|
|
|
|
|
|
@@ -103,6 +97,7 @@ impl KucoinSwapWs {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/*****返回结构体*******/
|
|
|
KucoinSwapWs {
|
|
|
label,
|
|
|
@@ -175,7 +170,7 @@ impl KucoinSwapWs {
|
|
|
{
|
|
|
self.symbol_s = b_array.clone();
|
|
|
self.request_url = format!("{}?token={}", self.ws_param.ws_url, self.ws_param.token);
|
|
|
- trace!("当前地址:{}",self.request_url);
|
|
|
+ info!("走普通通道:{}", self.request_url);
|
|
|
self.run(bool_v1).await;
|
|
|
}
|
|
|
|