Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Piotr Osiewicz43e005e936e1
diff --git a/crates/ollama/src/ollama.rs b/crates/ollama/src/ollama.rs
index 972520e61f5..51c48290488 100644
--- a/crates/ollama/src/ollama.rs
+++ b/crates/ollama/src/ollama.rs
@@ -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(())