mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-03 18:15:46 +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
|
||||
// updates.
|
||||
.filter(|(_, u)| processing_id
|
||||
.map(|id| id != u.id())
|
||||
.unwrap_or(true))
|
||||
.map_or(true, |id| id != u.id()))
|
||||
.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)))
|
||||
|
Loading…
Reference in New Issue
Block a user