mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01: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
@ -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…
Reference in New Issue
Block a user