mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Rename recv and read methods to recv_action and recv_frame
This commit is contained in:
parent
5b860cb989
commit
30eb0e5b5b
2 changed files with 4 additions and 4 deletions
|
@ -136,11 +136,11 @@ impl LargeVectors {
|
|||
}
|
||||
|
||||
impl<'a> WriterBbqueueReceiver<'a> {
|
||||
pub fn recv(&mut self) -> Option<ReceiverAction> {
|
||||
pub fn recv_action(&mut self) -> Option<ReceiverAction> {
|
||||
self.receiver.recv().ok()
|
||||
}
|
||||
|
||||
pub fn read(&mut self) -> Option<FrameWithHeader<'a>> {
|
||||
pub fn recv_frame(&mut self) -> Option<FrameWithHeader<'a>> {
|
||||
for consumer in &mut self.consumers {
|
||||
if let Some(frame) = consumer.read() {
|
||||
return Some(FrameWithHeader::from(frame));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue