Refactor: Replace REQWESTCONFIG with initialize_reqwest_client

so that we don't need two `OnceCell`s.

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

View file

@ -88,7 +88,7 @@ impl QuickInstall {
let url = Url::parse(&stats_url)?;
debug!("Sending installation report to quickinstall ({url})");
new_reqwest_client()?
new_reqwest_client()
.request(Method::HEAD, url.clone())
.send()
.await