mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08: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