mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +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.
|
// If no more chunk remains in the chunk accumulator and the channel is disconected, break.
|
||||||
} else if status == crossbeam_channel::RecvTimeoutError::Disconnected {
|
} else if status == crossbeam_channel::RecvTimeoutError::Disconnected {
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
rayon::yield_now();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(result) => {
|
Ok(result) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user