wrong tab
This commit is contained in:
parent
e8ef06c2cb
commit
bbbbd6bf64
20
src/main.rs
20
src/main.rs
@ -354,16 +354,16 @@ async fn download_history(config:DownloadHistoryConfig)->AResult<()>{
|
|||||||
})
|
})
|
||||||
.buffer_unordered(CONCURRENT_REQUESTS)
|
.buffer_unordered(CONCURRENT_REQUESTS)
|
||||||
.for_each(|b:AResult<_>|async{
|
.for_each(|b:AResult<_>|async{
|
||||||
match b{
|
match b{
|
||||||
Ok((dest,data))=>{
|
Ok((dest,data))=>{
|
||||||
match tokio::fs::write(dest,data).await{
|
match tokio::fs::write(dest,data).await{
|
||||||
Err(e)=>eprintln!("fs error: {}",e),
|
Err(e)=>eprintln!("fs error: {}",e),
|
||||||
_=>(),
|
_=>(),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Err(e)=>eprintln!("dl error: {}",e),
|
Err(e)=>eprintln!("dl error: {}",e),
|
||||||
}
|
}
|
||||||
}).await;
|
}).await;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user