Revert http client changes (#18892)
These proved to be too unstable. Will restore these changes once the issues have been fixed. Release Notes: - N/A
This commit is contained in:
parent
e351148152
commit
5d5c4b6677
35 changed files with 386 additions and 1125 deletions
|
@ -51,6 +51,7 @@ workspace.workspace = true
|
|||
worktree.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
isahc_http_client.workspace = true
|
||||
client = { workspace = true, features = ["test-support"] }
|
||||
env_logger.workspace = true
|
||||
fs = { workspace = true, features = ["test-support"] }
|
||||
|
@ -61,7 +62,6 @@ language = { workspace = true, features = ["test-support"] }
|
|||
languages.workspace = true
|
||||
project = { workspace = true, features = ["test-support"] }
|
||||
tempfile.workspace = true
|
||||
ureq_client.workspace = true
|
||||
util = { workspace = true, features = ["test-support"] }
|
||||
workspace = { workspace = true, features = ["test-support"] }
|
||||
worktree = { workspace = true, features = ["test-support"] }
|
||||
|
|
|
@ -2,6 +2,7 @@ use client::Client;
|
|||
use futures::channel::oneshot;
|
||||
use gpui::App;
|
||||
use http_client::HttpClientWithUrl;
|
||||
use isahc_http_client::IsahcHttpClient;
|
||||
use language::language_settings::AllLanguageSettings;
|
||||
use project::Project;
|
||||
use semantic_index::{OpenAiEmbeddingModel, OpenAiEmbeddingProvider, SemanticDb};
|
||||
|
@ -28,11 +29,7 @@ fn main() {
|
|||
let clock = Arc::new(FakeSystemClock::default());
|
||||
|
||||
let http = Arc::new(HttpClientWithUrl::new(
|
||||
Arc::new(ureq_client::UreqClient::new(
|
||||
None,
|
||||
"Zed semantic index example".to_string(),
|
||||
cx.background_executor().clone(),
|
||||
)),
|
||||
IsahcHttpClient::new(None, None),
|
||||
"http://localhost:11434",
|
||||
None,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue