Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Commit

Permalink
Use the WEB_CLIENT for downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
JCapucho authored and Songtronix committed Jun 27, 2021
1 parent febb688 commit 8d8bbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/net/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub(crate) fn download(url: String, location: PathBuf) -> impl Stream<Item = Pro
futures::stream::unfold(State::Ready(url, location), |state| async move {
match state {
State::Ready(url, location) => {
let response = reqwest::get(&url).await;
let response = crate::net::client::WEB_CLIENT.get(&url).send().await;

match response {
Ok(response) => {
Expand Down

0 comments on commit 8d8bbf3

Please sign in to comment.