embed no longer async

This commit is contained in:
Louis Dureuil 2024-03-19 15:42:53 +01:00
parent ac52c857e8
commit f649f58013
No known key found for this signature in database
2 changed files with 5 additions and 7 deletions

View file

@ -75,9 +75,8 @@ pub async fn multi_search_with_post(
})
.with_index(query_index)?;
let distribution = embed(&mut query, index_scheduler.get_ref(), &index)
.await
.with_index(query_index)?;
let distribution =
embed(&mut query, index_scheduler.get_ref(), &index).with_index(query_index)?;
let search_result = tokio::task::spawn_blocking(move || {
perform_search(&index, query, features, distribution)