mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
Rename recv and read methods to recv_action and recv_frame
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user