mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
Apply suggestions
This commit is contained in:
parent
df721b2e9e
commit
dfce9ba468
@ -138,12 +138,12 @@ async fn get_tasks(
|
|||||||
// We +1 just to know if there is more after this "page" or not.
|
// We +1 just to know if there is more after this "page" or not.
|
||||||
let limit = limit.saturating_add(1);
|
let limit = limit.saturating_add(1);
|
||||||
|
|
||||||
let mut tasks_results = meilisearch
|
let mut tasks_results: Vec<_> = meilisearch
|
||||||
.list_tasks(filters, Some(limit), from)
|
.list_tasks(filters, Some(limit), from)
|
||||||
.await?
|
.await?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(TaskView::from)
|
.map(TaskView::from)
|
||||||
.collect::<Vec<_>>();
|
.collect();
|
||||||
|
|
||||||
// If we were able to fetch the number +1 tasks we asked
|
// If we were able to fetch the number +1 tasks we asked
|
||||||
// it means that there is more to come.
|
// it means that there is more to come.
|
||||||
|
Loading…
Reference in New Issue
Block a user