chore: Remove commented out code following 15446 (#18047)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-09-19 02:19:58 +02:00 committed by GitHub
parent b43b800a54
commit 43e005e936
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -343,17 +343,7 @@ pub async fn preload_model(client: Arc<dyn HttpClient>, api_url: &str, model: &s
}),
)?))?;
let mut response = match client.send(request).await {
Ok(response) => response,
Err(error) => {
// Be ok with a timeout during preload of the model
// if err.is_timeout() {
// return Ok(());
// } else {
return Err(error);
//}
}
};
let mut response = client.send(request).await?;
if response.status().is_success() {
Ok(())