Rename new_reqwest_client > get_reqwest_client

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-01 00:15:54 +10:00
parent 6582eefd25
commit 5ad572fa42
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 5 additions and 5 deletions

View file

@ -7,7 +7,7 @@ use tokio::task::JoinHandle;
use url::Url;
use super::Data;
use crate::{download_and_extract, new_reqwest_client, remote_exists, BinstallError, PkgFmt};
use crate::{download_and_extract, get_reqwest_client, remote_exists, BinstallError, PkgFmt};
const BASE_URL: &str = "https://github.com/alsuren/cargo-quickinstall/releases/download";
const STATS_URL: &str = "https://warehouse-clerk-tmp.vercel.app/api/crate";
@ -88,7 +88,7 @@ impl QuickInstall {
let url = Url::parse(&stats_url)?;
debug!("Sending installation report to quickinstall ({url})");
new_reqwest_client()
get_reqwest_client()
.request(Method::HEAD, url.clone())
.send()
.await