Explorar el Código

htx 订阅bug修复

hl hace 1 año
padre
commit
a4f08a59a1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      exchanges/src/htx_swap_ws.rs

+ 2 - 2
exchanges/src/htx_swap_ws.rs

@@ -68,7 +68,7 @@ pub struct HtxSwapWs {
     //订阅
     subscribe_types: Vec<HtxSwapSubscribeType>,
     //心跳间隔
-    heartbeat_time: u64,
+    _heartbeat_time: u64,
 }
 
 
@@ -102,7 +102,7 @@ impl HtxSwapWs {
             login_param,
             symbol_s: vec![],
             subscribe_types: vec![],
-            heartbeat_time: 1000 * 10,
+            _heartbeat_time: 1000 * 10,
         }
     }