mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Update src/index_controller/local_index_controller/mod.rs
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
7d2ae9089e
commit
c0515bcfe2
1 changed files with 1 additions and 2 deletions
|
@ -116,8 +116,7 @@ impl IndexController for LocalIndexController {
|
||||||
// If an update is processing, filter out this update from the pending
|
// If an update is processing, filter out this update from the pending
|
||||||
// updates.
|
// updates.
|
||||||
.filter(|(_, u)| processing_id
|
.filter(|(_, u)| processing_id
|
||||||
.map(|id| id != u.id())
|
.map_or(true, |id| id != u.id()))
|
||||||
.unwrap_or(true))
|
|
||||||
.map(|(_, u)| UpdateStatus::from(u)))
|
.map(|(_, u)| UpdateStatus::from(u)))
|
||||||
.chain(aborted.filter_map(Result::ok).map(|(_, u)| UpdateStatus::from(u)))
|
.chain(aborted.filter_map(Result::ok).map(|(_, u)| UpdateStatus::from(u)))
|
||||||
.chain(processed.filter_map(Result::ok).map(|(_, u)| UpdateStatus::from(u)))
|
.chain(processed.filter_map(Result::ok).map(|(_, u)| UpdateStatus::from(u)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue