mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-26 06:30:05 +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…
x
Reference in New Issue
Block a user