ソースを参照

一些警告的去除。

skyffire 1 年間 前
コミット
b8fe251c93
2 ファイル変更1 行追加4 行削除
  1. 1 3
      strategy/src/bybit_usdt_swap.rs
  2. 0 1
      strategy/src/gate_swap.rs

+ 1 - 3
strategy/src/bybit_usdt_swap.rs

@@ -1,11 +1,9 @@
 use std::collections::BTreeMap;
 use std::sync::Arc;
 use std::sync::atomic::{AtomicBool};
-use std::time::Duration;
 use rust_decimal::Decimal;
-use tokio::{spawn, time};
+use tokio::{spawn};
 use tokio::sync::Mutex;
-use tokio::time::Instant;
 use tracing::{error, info};
 use exchanges::bybit_swap_ws::{BybitSwapLogin, BybitSwapSubscribeType, BybitSwapWs, BybitSwapWsType};
 use exchanges::response_base::ResponseData;

+ 0 - 1
strategy/src/gate_swap.rs

@@ -5,7 +5,6 @@ use std::sync::atomic::AtomicBool;
 use rust_decimal::Decimal;
 use tokio::spawn;
 use tokio::sync::Mutex;
-use tokio::time::Instant;
 use exchanges::gate_swap_rest::GateSwapRest;
 use exchanges::gate_swap_ws::{GateSwapLogin, GateSwapSubscribeType, GateSwapWs, GateSwapWsType};
 use exchanges::response_base::ResponseData;