convert Client into Service

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-07-16 22:29:42 +00:00
parent f465d77ad3
commit 8a2ae401df
13 changed files with 159 additions and 23 deletions

View file

@ -621,7 +621,7 @@ async fn request_url_preview(services: &Services, url: &str) -> Result<UrlPrevie
}
}
let client = &services.globals.client.url_preview;
let client = &services.client.url_preview;
let response = client.head(url).send().await?;
if let Some(remote_addr) = response.remote_addr() {