mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-25 14:24:26 +01:00
yield in loop when the channel is not disconnected
This commit is contained in:
parent
7877788510
commit
7efb1cae11
@ -497,6 +497,8 @@ where
|
||||
// If no more chunk remains in the chunk accumulator and the channel is disconected, break.
|
||||
} else if status == crossbeam_channel::RecvTimeoutError::Disconnected {
|
||||
break;
|
||||
} else {
|
||||
rayon::yield_now();
|
||||
}
|
||||
}
|
||||
Ok(result) => {
|
||||
|
Loading…
Reference in New Issue
Block a user