convert Client into Service
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
f465d77ad3
commit
8a2ae401df
13 changed files with 159 additions and 23 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue