forked from StrafesNET/asset-tool
clarify
This commit is contained in:
parent
90aa03f86e
commit
c084219534
@ -266,6 +266,7 @@ fn maybe_gzip_decode<R:Read>(input:R)->AResult<ReaderType<R>>{
|
|||||||
|
|
||||||
async fn upload_list(cookie:String,group:Option<u64>,asset_id_file_map:AssetIDFileMap)->AResult<()>{
|
async fn upload_list(cookie:String,group:Option<u64>,asset_id_file_map:AssetIDFileMap)->AResult<()>{
|
||||||
let client=reqwest::Client::new();
|
let client=reqwest::Client::new();
|
||||||
|
//this is calling map on the vec because the closure produces an iterator of futures
|
||||||
futures::stream::iter(asset_id_file_map.into_iter()
|
futures::stream::iter(asset_id_file_map.into_iter()
|
||||||
.map(|(asset_id,file)|{
|
.map(|(asset_id,file)|{
|
||||||
let client=&client;
|
let client=&client;
|
||||||
|
Loading…
Reference in New Issue
Block a user