mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Fix an issue with the update loop falsely breaking
This commit is contained in:
parent
490836a7b3
commit
fa5f8f9531
@ -162,8 +162,7 @@ impl UpdateStore {
|
|||||||
// function returns a Result and we must just unlock the loop on Result.
|
// function returns a Result and we must just unlock the loop on Result.
|
||||||
'outer: while timeout(duration, notification_receiver.recv())
|
'outer: while timeout(duration, notification_receiver.recv())
|
||||||
.await
|
.await
|
||||||
.transpose()
|
.map_or(true, |o| o.is_some())
|
||||||
.map_or(false, |r| r.is_ok())
|
|
||||||
{
|
{
|
||||||
loop {
|
loop {
|
||||||
match update_store_weak.upgrade() {
|
match update_store_weak.upgrade() {
|
||||||
|
Loading…
Reference in New Issue
Block a user