From fa5f8f95315d7377e70323e5cc35afc905a53979 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Thu, 1 Jul 2021 14:51:44 +0200 Subject: [PATCH] Fix an issue with the update loop falsely breaking --- .../src/index_controller/update_actor/store/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meilisearch-http/src/index_controller/update_actor/store/mod.rs b/meilisearch-http/src/index_controller/update_actor/store/mod.rs index f4abeae09..34e364497 100644 --- a/meilisearch-http/src/index_controller/update_actor/store/mod.rs +++ b/meilisearch-http/src/index_controller/update_actor/store/mod.rs @@ -162,8 +162,7 @@ impl UpdateStore { // function returns a Result and we must just unlock the loop on Result. 'outer: while timeout(duration, notification_receiver.recv()) .await - .transpose() - .map_or(false, |r| r.is_ok()) + .map_or(true, |o| o.is_some()) { loop { match update_store_weak.upgrade() {