|
|
@@ -3,6 +3,8 @@ use std::io::{Error, ErrorKind};
|
|
|
use std::str::FromStr;
|
|
|
use tokio::sync::mpsc::Sender;
|
|
|
use async_trait::async_trait;
|
|
|
+use futures::stream::FuturesUnordered;
|
|
|
+use futures::TryStreamExt;
|
|
|
use rust_decimal::Decimal;
|
|
|
use rust_decimal::prelude::{FromPrimitive, ToPrimitive};
|
|
|
use serde_json::json;
|
|
|
@@ -628,8 +630,8 @@ impl Platform for GateSwap {
|
|
|
handles.push(handle)
|
|
|
}
|
|
|
|
|
|
- // let futures = FuturesUnordered::from_iter(handles);
|
|
|
- // let _: Result<Vec<_>, _> = futures.try_collect().await;
|
|
|
+ let futures = FuturesUnordered::from_iter(handles);
|
|
|
+ let _: Result<Vec<_>, _> = futures.try_collect().await;
|
|
|
}
|
|
|
}
|
|
|
|