mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-30 23:13:09 +08: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.
|
// 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…
x
Reference in New Issue
Block a user