mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-26 14:40:05 +01:00
Merge #1456
1456: Fix update loop timeout r=Kerollmops a=Kerollmops This PR fixes a wrong fix of the update loop introduced in #1429. Co-authored-by: Kerollmops <clement@meilisearch.com>
This commit is contained in:
commit
70dd1e6263
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user