From 8e0d8d31f9e5b6b8cc03c00e5874891167fcf51d Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Wed, 12 Feb 2025 11:53:00 +0100 Subject: [PATCH] Add back timeout from v1.11.3 --- crates/milli/src/vector/rest.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/milli/src/vector/rest.rs b/crates/milli/src/vector/rest.rs index 58d805aaf..467169d9c 100644 --- a/crates/milli/src/vector/rest.rs +++ b/crates/milli/src/vector/rest.rs @@ -130,6 +130,7 @@ impl Embedder { let client = ureq::AgentBuilder::new() .max_idle_connections(REQUEST_PARALLELISM * 2) .max_idle_connections_per_host(REQUEST_PARALLELISM * 2) + .timeout(std::time::Duration::from_secs(30)) .build(); let request = Request::new(options.request)?;