mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-30 23:27:36 +01:00
Short connect timeout
This commit is contained in:
parent
2f59a36fa7
commit
55c25b3202
@ -386,7 +386,10 @@ pub async fn perform_federated_search(
|
||||
|
||||
// run remote queries
|
||||
let mut in_flight_remote_queries = BTreeMap::new();
|
||||
let client = reqwest::Client::new();
|
||||
let client = reqwest::ClientBuilder::new()
|
||||
.connect_timeout(std::time::Duration::from_millis(200))
|
||||
.build()
|
||||
.unwrap();
|
||||
let params =
|
||||
ProxySearchParams { deadline: Some(deadline), try_count: 3, client: client.clone() };
|
||||
for (node_name, (node, queries)) in remote_queries_by_host {
|
||||
|
Loading…
x
Reference in New Issue
Block a user